-
Bug
-
Resolution: Duplicate
-
Blocker
-
None
-
4.0
-
MOODLE_400_STABLE
-
MDL-73803-master
-
1
-
HQ Team International CIH2-218
As part of testing instructions for MDL-73679 I am looking at format_topcoll and hitting a number of barriers.
One of those barriers is that format options are placed onto $course and are then assumed to exist even though these are specific to individual formats.
This also concerns me as it prevents us from ever adding another field to the course table as it could conflict with an existing one in a contrib course format.
We should not:
- add random options to the $course object; and
- assume that properties exist.
For reference, the error I have is this:
( ! ) Notice: Undefined property: stdClass::$coursedisplay in /Users/nicols/Sites/moodles/sm/moodle/course/format/classes/output/local/content/section.php on line 216
|
The coursedisplay is actually a feature of the format_topics and format_weeks formats, but is assumed to exist by core.