MDL-32988 Lib: Course delete does availability/completion in wrong order
authorsam marshall <s.marshall@open.ac.uk>
Tue, 15 May 2012 10:38:03 +0000 (11:38 +0100)
committersam marshall <s.marshall@open.ac.uk>
Tue, 15 May 2012 11:02:00 +0000 (12:02 +0100)
commita7d09b7008a1f5a1862c905e86bcfaefa326695b
tree5803585311c06c46b29d38f0d996a9d11b1604bb
parent71d7bc34a899136579966cf56402f7bcca5d0e62
MDL-32988 Lib: Course delete does availability/completion in wrong order

When deleting modules that failed to delete using normal method, it deleted
the course-modules table first and then the availability/completion,
which depend on the entries in course-modules table. This commit switches
the order.
lib/moodlelib.php