Moodle

missing error message when entering empty response

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8, 1.9
  • Fix Version/s: 1.8.4, 1.9
  • Component/s: Lesson
  • Labels:
    None
  • Affected Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE

Description

In moodle 1.8 and 1.9 (not tested on 1.7) when student clicks on submit button and response is empty, there ought to be displayed the error message: "No answer given. Please go back and submit an answer."
In moodle 1.8.2, this bug can be fixed by moving line 651
$feedback = get_string('noanswer', 'lesson');
up to just after line 526, which should now be:
if ($noanswer) { $feedback = get_string('noanswer', 'lesson'); $newpageid = $pageid; // display same page again } else {
Joseph

Issue Links

Activity

Hide
Mark Nielsen added a comment -

Thanks for the ticket and the suggested fix!

Show
Mark Nielsen added a comment - Thanks for the ticket and the suggested fix!

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: