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

Ordering questions cannot be edited if hints store NULL for "clearwrong"

XMLWordPrintable

      Previous ordering question whose hints had clearwrong NULL break quiz and question editing.

      In our database, there are ordering type questions whose hints do not carry a value in the clearwrong column.

      They would trigger an error upon attempting a quiz with that question present, or when trying to edit that question.

       

      TO REPRODUCE:

      Have a ordering question whose related entries in the question_hints table have NULL in the clearwrong field.
      As teacher, try to edit such a question.
      WHAT YOU EXPECT:
      Editing succeeds.
      WHAT ACTUALLY HAPPENS:
      There is an error thrown.

            lucaboesch Luca Bösch
            lucaboesch Luca Bösch
            Stephan Robotta Stephan Robotta
            Tim Hunt Tim Hunt
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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