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

Specifying a grade but no answer gives the wrong error on multichoice questions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.1.2, 2.2
    • Fix Version/s: 2.1.3
    • Component/s: Questions
    • Labels:
      None
    • Database:
      Any
    • Testing Instructions:
      Hide
      • Create new quiz
      • Create new question of type 'Multiple choice'
      • Fill in the question name 'A or B?'
      • Set 'One or multiple answers?' to 'Multiple answers allowed'
      • Choice 1: Set Answer to 'A'; Set Grade to 50%
      • Choice 2: Do not set Answer; Set Grade to 50%
      • Choose 'Save changes' at the bottom of the form

      An error message should be shown beside any question which has a grade but no answer indicating that answer is missing

      Show
      Create new quiz Create new question of type 'Multiple choice' Fill in the question name 'A or B?' Set 'One or multiple answers?' to 'Multiple answers allowed' Choice 1: Set Answer to 'A'; Set Grade to 50% Choice 2: Do not set Answer; Set Grade to 50% Choose 'Save changes' at the bottom of the form An error message should be shown beside any question which has a grade but no answer indicating that answer is missing
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-29818-master

      Description

      When creating a multiple choice question, if you have an answer with a grade, but nothing in the 'answer' section, the error message returned suggests that the answers do not add up to 100%

      We've had users do this by inadvertently filling in the Feedback section instead of the answer section

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  28/Nov/11