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

Cloze questions where all subquestions have zero weight cause Division by zero errors with interactive behaviour

XMLWordPrintable

      Here are the steps to replicate the issue:

      1. Create a course.
      2. Access its question bank and create a cloze (mutianswer) question with the following text in it:
        Optional question {0:SHORTANSWER:~%0%Input box~%100%*}
      3. Access Questions tab.
      4. Set Maximum grade to 0 and save.
      5. Create a label in the course and use the filter_embedquestion to embed the question.

      The user will see a divide by zero error when saving their response.

            andrew_dc_hancox Andrew Hancox
            andrew_dc_hancox Andrew Hancox
            Luca Bösch Luca Bösch
            Tim Hunt Tim Hunt
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 46 minutes
                46m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.