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

Essay questions interpret the zero string '0' as incomplete

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.2.10, 2.3.7, 2.4.4, 2.5, 2.6
    • Fix Version/s: 2.3.8, 2.4.5, 2.5.1
    • Component/s: Questions
    • Labels:
      None
    • Testing Instructions:
      Hide

      Run the provided unit tests and ensure that all tests pass.

      Manually test as follows:
      1. Create a new quiz.
      2. Add a new essay question to said quiz; set its response format to "plain text"*. Do not include a response template.
      3. Log in as a student and attempt the quiz. In the essay response box, enter a single 0 (zero) with no leading or trailing spaces.
      4. Press 'next' to move to the summary page. Verify that the question is in the "needs grading" state: its status column should read "answer saved".
      5. Submit the quiz.
      6. Log in as an instructor, and verify that the quiz needs grading, and has not been assigned a zero. Check for the word "complete" under the question number.

      Show
      Run the provided unit tests and ensure that all tests pass. Manually test as follows: 1. Create a new quiz. 2. Add a new essay question to said quiz; set its response format to "plain text"*. Do not include a response template. 3. Log in as a student and attempt the quiz. In the essay response box, enter a single 0 (zero) with no leading or trailing spaces. 4. Press 'next' to move to the summary page. Verify that the question is in the "needs grading" state: its status column should read "answer saved". 5. Submit the quiz. 6. Log in as an instructor, and verify that the quiz needs grading, and has not been assigned a zero. Check for the word "complete" under the question number.
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-40264-essay-zero

      Description

      If a respondent submits only one zero (0s) for an essay question, their submission is incorrectly considered incomplete.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    8/Jul/13