Skip to content

Commit

Permalink
MDL-13375 Fixed the bug in modedit.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Feb 13, 2008
1 parent 916071c commit 6644a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course/modedit.php
Expand Up @@ -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];
}
}
}
Expand Down

0 comments on commit 6644a4f

Please sign in to comment.