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

Missing input validation for quiz question version

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.2.5, 4.3.5
    • Quiz
    • MOODLE_402_STABLE, MOODLE_403_STABLE

      To reproduce:

      1. Create a quiz with a question bank that contains questions with several versions
      2. Open in tab A the "Questions" View
      3. Open in tab B the "Question bank" View
      4. Navigate in tab B to the history of a question with several versions
      5. Verify in tab A that the chosen question shows all the versions in the version dropdown
      6. In tab B, delete one of the question versions
      7. In tab A, select the previously deleted version (autosaves)
      8. Tab A shows the following exception `Argument #1 ($questionid) must be of type int, string given`

      Expected behavior:
      A notification that the selected version does not exist any longer.

            Unassigned Unassigned
            gregoreichelberger Gregor Eichelberger
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

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