修改匯入比對欄位,新增格式 firstname, lastname,並以語系字串顯示。
[root@moodle grade]# diff -urNwbBE /var/www/html/moodle/grade/import/grade_import_form.php import/grade_import_form.php
--- /var/www/html/moodle/grade/import/grade_import_form.php 2012-06-26 01:14:18.000000000 +0800
+++ import/grade_import_form.php 2014-07-15 15:50:19.932737017 +0800
@@ -86,7 +86,8 @@
}
$mform->addElement('select', 'mapfrom', get_string('mapfrom', 'grades'), $mapfromoptions);
- $maptooptions = array('userid'=>'userid', 'username'=>'username', 'useridnumber'=>'useridnumber', 'useremail'=>'useremail', '0'=>'ignore');
+ $maptooptions = array('firstname' => get_string('firstname'), 'lastname'=>get_string('lastname'), 'useremail'=>'useremail', '0'=>'ignore');
$mform->addElement('select', 'mapto', get_string('mapto', 'grades'), $maptooptions);
$mform->addElement('header', 'general', get_string('mappings', 'grades'));