-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
3.2
-
None
-
MOODLE_32_STABLE
Discovered from a behat test failure which I've been unable to reproduce so far:
And I press "Create badge" # /store/moodle/behat_whole_suite_test/badges/tests/behat/award_badge.feature:205
|
exception 'Exception' with message 'Moodle exception: Exception - Notice: Undefined variable: OUTPUT in [dirroot]/badges/criteria/award_criteria_course.php on line 103 More information about this error
|
|
|
×
|
|
Debug info:
|
|
Error code: generalexceptionmessage
|
|
|
|
×
|
|
Stack trace:
|
|
line 158 of /lib/behat/lib.php: Exception thrown
|
line 103 of /badges/criteria/award_criteria_course.php: call to behat_error_handler()
|
line 87 of /badges/criteria/award_criteria_course.php: call to award_criteria_course->get_details()
|
line 102 of /badges/criteria.php: call to award_criteria_course->config_form_criteria()
|
' in /store/moodle/behat_whole_suite_test/lib/behat/behat_base.php:806
|
|
badges/criteria/award_criteria_course.php::get_details() is missing the global declaration for $OUTPUT used when the requested course was not found.
- duplicates
-
MDL-55749 undefined variable $OUTPUT in badges/criteria/award_criteria_course.php
- Closed