]> git.mjollnir.org Git - moodle.git/commit
Merged from MOODLE_14_STABLE
authormartinlanghoff <martinlanghoff>
Tue, 4 Jan 2005 22:52:29 +0000 (22:52 +0000)
committermartinlanghoff <martinlanghoff>
Tue, 4 Jan 2005 22:52:29 +0000 (22:52 +0000)
commit559027a76c8b62c05dc8bddddf30a342987be9e9
treef40bf120c52dbcdfb7b36837c1fbcfd033fe3144
parent0f256abc0c0d2f7316227f053dff8d9213279f4c
Merged from MOODLE_14_STABLE

Fixes bug 2334 http://moodle.org/bugs/bug.php?op=show&bugid=2334

Courses will sometimes fail to be moved across categories if there are collisions in the sortorder field, due to a combined unique index.

With this fix, the 'category move' logic is aware of sortorder and will do The Right Thing(tm) putting the course at the beginning of the category: MIN(sortorder)-1 WHERE category=$destcategory->id .

Also added further cleanup patches.
course/category.php