-
Bug
-
Resolution: Fixed
-
Blocker
-
2.0
-
None
-
MOODLE_20_STABLE
-
MOODLE_21_STABLE
Cannot create new questionnaire.
When saving new questionnaire form, I get the following error messages and questionnaire is NOT created.
Notice: Trying to get property of non-object in C:\server\htdocs\moodle20git\moodle\mod\questionnaire\locallib.php on line 57
Error: could not insert new context level "70", instance "". cm with id does not exist
- line 1886 of \lib\accesslib.php: call to debugging()
- line 2223 of \lib\accesslib.php: call to create_context()
- line 57 of \mod\questionnaire\locallib.php: call to get_context_instance()
- line 76 of \mod\questionnaire\locallib.php: call to questionnaire->questionnaire()
- line 19 of \mod\questionnaire\mod_form.php: call to questionnaire->__construct()
- line 152 of \lib\formslib.php: call to mod_questionnaire_mod_form->definition()
- line 71 of \course\moodleform_mod.php: call to moodleform->moodleform()
- line 219 of \course\modedit.php: call to moodleform_mod->moodleform_mod()
Notice: Undefined property: object::$id in C:\server\htdocs\moodle20git\moodle\mod\questionnaire\locallib.php on line 57