martinlanghoff 559027a76c 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.
2005-01-04 22:52:29 +00:00
..
2004-11-08 19:36:07 +00:00
2005-01-04 22:52:29 +00:00
2004-10-08 17:58:38 +00:00
2004-11-29 04:19:05 +00:00
2004-09-12 12:21:27 +00:00
2004-09-16 17:13:57 +00:00
2004-10-09 11:37:48 +00:00
2004-02-14 17:01:14 +00:00
2004-10-09 12:03:55 +00:00
2004-09-16 17:13:57 +00:00
2004-09-12 12:21:27 +00:00
2004-09-16 17:13:57 +00:00
2004-09-12 12:21:27 +00:00
2004-09-16 17:13:57 +00:00
2004-09-16 17:13:57 +00:00
2004-11-29 04:19:05 +00:00