Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Duplicate
-
Affects Version/s: 1.9
-
Fix Version/s: None
-
Component/s: Lesson
-
Labels:None
-
Environment:linux
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
Description
if you press the answer button with no answers selected (multichoice), there are 2 "notice" errors, which lead to broken page an weird aspect
:
- $nodefaultresponse is not defined
- $feedback is not defined
This is because the following defaults were not present at the start of the script in ROOT/mod/lesson/action/continue.php
$nodefaultresponse = false; // Flag for redirecting when default feedback is turned off
$feedback = get_string('noanswer', 'lesson');
I added these 2 lines where the defaults are set up (near line 63) and everything worked fine again!
Attachments
Issue Links
| This issue duplicates: | ||||
| MDL-11636 | missing error message when entering empty response |
|
|
|
Having trouble reproducing this. I created a multiple choice question and hit the submit button while answering it with no choices filled out and I get the expected result, which is a message saying "No answer given. Please go back and submit an answer." with a Continue button.