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

A bad question in db stops the question bank

    XMLWordPrintable

    Details

      Description

      If there is a bad question (for example a multichoice question with no option in the qtype_multichoice_options table) in the DB, when you try to add a question from the bank Moodle throws a JS error and in the logs there is an sql error record not found.

      This is the same problem as MDL-62811, but it is showing itself in other places as well.

      To reproduce:

      1. Create a new multiple choice question.
      2. In the database, delete the newly added row in qtype_multichoice_options.
      3. Create a quiz
      4. Go to the quiz edit questions page
      5. click on add -> from question bank

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/Jan/19

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 10 minutes
                  10m