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

Web Service mod_quiz_get_quiz_required_qtypes is not working anymore when the quiz includes only random questions

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-75048-master
    • Hide
      Prerequisite
      1. Moodle mobile app.
      2. Your Moodle mobile app should be able to connect to your Moodle website. You can either do the following:
        • Ensure that the phone with the mobile app and the web server are on the same network. Or
        • Expose the web server over the internet via ngrok.
      Test
      1. As an admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings
      2. Create a new empty course
      3. Import the attached backup to the course (it will create a quiz activity with only random questions)
      4. Enrol a user as a student of that course
      5. Connect to the site using the Moodle mobile app and the student account
      6. Access to the previously created quiz and verify that:
        • You can correctly attempt the quiz and finalise it
      Show
      Prerequisite Moodle mobile app. Your Moodle mobile app should be able to connect to your Moodle website. You can either do the following: Ensure that the phone with the mobile app and the web server are on the same network. Or Expose the web server over the internet via ngrok. Test As an admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings Create a new empty course Import the attached backup to the course (it will create a quiz activity with only random questions) Enrol a user as a student of that course Connect to the site using the Moodle mobile app and the student account Access to the previously created quiz and verify that: You can correctly attempt the quiz and finalise it

      It seems that a recent refactor related to quiz slots, for adding filter conditions, broke one existing web service that was using the includingsubcategories field that was stored as part of the question data. This field is now stored in the new filter conditions structure.

      This is causing some quizzes to not work on the app (they cannot be attempted), it usually happens when all the quiz questions are set to random question from any category of the course.

            jleyva Juan Leyva
            jleyva Juan Leyva
            Tim Hunt Tim Hunt
            Jun Pataleta Jun Pataleta
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 45 minutes
                1h 45m

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