MDL-36795 - lib / administration: maxsections now limits the default setting for...
authorAdrian Greeve <adrian@moodle.com>
Fri, 23 Nov 2012 07:50:11 +0000 (15:50 +0800)
committerAdrian Greeve <adrian@moodle.com>
Mon, 26 Nov 2012 06:41:50 +0000 (14:41 +0800)
commit341bfedf9039bb5b9577291da4569219f892dfef
tree24492bb73e5b5c894f471f630b85f5199c30ae29
parentf42c34a38a51de6f6202de430df9cdb9fcee6fe2
MDL-36795 - lib / administration: maxsections now limits the default setting for numsections.

In the default course settings, setting the maximum number topics / weeks  to 0 would not
change the default number of sections on the same page as any other number would.
A more appropriate check has been put in place.

This also incorporates a fix for MDL-28584. The course edit screen now also checks to see
if maxsections is set or numeric. If it is not set or numeric then it defaults to 52.
course/format/topics/lib.php
course/format/weeks/lib.php
lib/adminlib.php