mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-74780 grade: account for absence of course grade items on import.
This commit is contained in:
parent
7c3188b2ca
commit
1d0fa45056
@ -119,11 +119,10 @@ class grade_import_mapping_form extends moodleform {
|
||||
$mform->addHelpButton('general_map', 'mappings', 'grades');
|
||||
|
||||
// Add a feedback option.
|
||||
$feedbacks = array();
|
||||
if ($gradeitems = $this->_customdata['gradeitems']) {
|
||||
foreach ($gradeitems as $itemid => $itemname) {
|
||||
$feedbacks['feedback_'.$itemid] = get_string('feedbackforgradeitems', 'grades', $itemname);
|
||||
}
|
||||
$feedbacks = [];
|
||||
$gradeitems = (array) $this->_customdata['gradeitems'];
|
||||
foreach ($gradeitems as $itemid => $itemname) {
|
||||
$feedbacks['feedback_'.$itemid] = get_string('feedbackforgradeitems', 'grades', $itemname);
|
||||
}
|
||||
|
||||
if ($header) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user