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

Choice sums answers from deleted options in the reporter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.3, 3.0.5, 3.1.1, 3.2
    • Fix Version/s: 3.0.6, 3.1.2
    • Component/s: Choice
    • Labels:
    • Testing Instructions:
      Hide

      Manual Testing

      1. Create a Choice activity with 3 options
      2. Enroll 3 users and use each one to answer a different option
      3. As a teacher verify that the Choice report`s link display 3 answers
      4. As a teacher edit the choice activity and delete one of the original options
      5. As the teacher verify that the Choice report's link should display only 2 answers

      Automated testing:

      1. Run behat for mod_choice
      Show
      Manual Testing Create a Choice activity with 3 options Enroll 3 users and use each one to answer a different option As a teacher verify that the Choice report`s link display 3 answers As a teacher edit the choice activity and delete one of the original options As the teacher verify that the Choice report's link should display only 2 answers Automated testing: Run behat for mod_choice
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-53803_m32v1

      Description

      EXPECTED RESULT: Choice report's link in the activity page will sum all answers from users currently enrolled in that course from existent options

      ACTUAL RESULT: Choice report`s link also include answers from non-existent options

      STEPS TO REPRODUCE:

      1. Create a Choice activity with 5 options
      2. Enroll 5 users and use each one to answer a different option
      3. # Choice report`s link display 5 answers
      4. Delete 2 of those original options
      5. # Choice report's link still displaying 5 answers

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Sep/16