MDL-37028 Integrity check for course modules and sections
authorDamyon Wiese <damyon@moodle.com>
Wed, 11 Sep 2013 02:17:57 +0000 (10:17 +0800)
committerDamyon Wiese <damyon@moodle.com>
Wed, 11 Sep 2013 02:47:49 +0000 (10:47 +0800)
commit749ce98e63bbdf83be3122741b4398941d3c658b
tree86b44febc34a5b7cc60420662f4e5e002e5a859a
parent111c6496007f8b14cecbf34bfabb6fb4aca6e857
MDL-37028 Integrity check for course modules and sections

This commit reinstates:
commit 0bac49dc1983824e4861086ed1ab9e13af99d76d
Author: Marina Glancy <marina@moodle.com>
Date:   Tue Sep 3 17:14:13 2013 +1000

    MDL-37028 Integrity check for course modules and sections

    If section mentioned in 'orphaned' module does not exist module is added to the first available section. Also corrected whitespaces

commit 1f0a9ce48b3e6f8c5dc6628aa692323909925032
Author: Marina Glancy <marina@moodle.com>
Date:   Mon Aug 12 14:06:48 2013 +1000

    MDL-37028 Integrity check for course modules and sections

    created function, unittest, build-in quick integrity check on each call to rebuild_course_cache()
    also added CLI script
admin/cli/fix_course_sequence.php [new file with mode: 0644]
course/lib.php
course/tests/courselib_test.php