Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-11636

missing error message when entering empty response

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bushido Mark Nielsen
              Reporter:
              rezeau Joseph Rézeau
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jan/08