From: nicolasconnault Date: Wed, 13 Feb 2008 08:15:31 +0000 (+0000) Subject: MDL-13375 Fixed the bug in modedit.php; Merging from MOODLE_19_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8c1c197e43d9c55393ac4324112aa8f9221105fd;p=moodle.git MDL-13375 Fixed the bug in modedit.php; Merging from MOODLE_19_STABLE --- diff --git a/course/modedit.php b/course/modedit.php index f9f022dc55..552242a483 100644 --- a/course/modedit.php +++ b/course/modedit.php @@ -345,9 +345,9 @@ } foreach ($items as $itemid=>$unused) { $items[$itemid]->set_parent($fromform->gradecat); - if ($item->id == $grade_item->id) { + if ($itemid == $grade_item->id) { // use updated grade_item - $grade_item = $item; + $grade_item = $items[$itemid]; } } }