]> git.mjollnir.org Git - moodle.git/commit
MDL-9506 Category and Item now set their own courseid if not set explicitly, and...
authornicolasconnault <nicolasconnault>
Mon, 28 May 2007 08:00:19 +0000 (08:00 +0000)
committernicolasconnault <nicolasconnault>
Mon, 28 May 2007 08:00:19 +0000 (08:00 +0000)
commitc91ed4be0d55d62d4f026420a67c939a9057cd0b
tree64083fe8bf79975722b34b41f4d9a9ff2f0f7c1b
parentd99077660542f646fe3dfceb6753be6e41f2fbe7
MDL-9506 Category and Item now set their own courseid if not set explicitly, and if they have enough information from
other sources. category::set_as_parent has a new constraint: cannot set over children from different courses.
Applied recursion to grade_tree::renumber(), but still some fine-tuning to do, since only grade_items are getting updated in DB.
lib/grade/grade_category.php
lib/grade/grade_item.php
lib/grade/grade_tree.php
lib/simpletest/grade/simpletest/testgradetree.php