Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4350

Quiz with sequential navigation doesn't work properly

XMLWordPrintable

    • Moodle Apps - 2023 Sprint i2.2, Moodle Apps - 2024 i1.1, Moodle Apps - 2024 i1.2, Moodle Apps - 2024 i1.3

      As reported in MOBILE-4345, MDL-75210 caused a regression with quizzes using sequential navigation.

      In particular, the following condition was introduced in mod/quiz/classes/external.php :

      if ($attemptobj->check_page_access($attemptobj->get_question_page($slot), false)) {
          $questions[] = $question;
      }
      

      This prevents the app from getting information about any question that is not the current, and thus prevents the bookmarks and quiz summary/review from displaying properly. It also affected navigation itself, but a workaround to fix that was introduced in MOBILE-4345 (it should be reverted once a proper solution is introduced).

      Also, quizzes configured with sequential navigation don't allow jumping to other questions from the navigation, so the buttons should appear disabled. This will also be consistent with the behaviour in the LMS (note: It seems like we already have some disabled navigation items elsewhere, for example in SCORM Table of contents, but it doesn't seem to be a11y friendly so this could be a change to review that).

      The Behat tests for this feature have been commented out to prevent conflicts during the integration of MDL-79295, but they should be re-enabled whilst working on this issue.

        1. MOBILE-4350_2024-02-21_18-39-16.mp4
          25.73 MB
        2. MOBILE-4350_notSupportedQuestions.jpg
          MOBILE-4350_notSupportedQuestions.jpg
          71 kB
        3. MOBILE-4350_opacity.png
          MOBILE-4350_opacity.png
          30 kB
        4. MOBILE-4350_outOfOrder_NO_browser.png
          MOBILE-4350_outOfOrder_NO_browser.png
          68 kB
        5. MOBILE-4350_outOfOrder.png
          MOBILE-4350_outOfOrder.png
          86 kB
        6. MOBILE-4350_startAttempt_NeverSync.png
          MOBILE-4350_startAttempt_NeverSync.png
          107 kB
        7. MOBILE-4350_tableOfContents_browser.png
          MOBILE-4350_tableOfContents_browser.png
          9 kB
        8. MOBILE-4350_video_2024-02-27_13-44-09.mp4
          17.68 MB
        9. MOBILE-4350_warning_NO_browser.png
          MOBILE-4350_warning_NO_browser.png
          90 kB
        10. MOBILE-4350_warning.png
          MOBILE-4350_warning.png
          94 kB
        11. screenshot-1.png
          screenshot-1.png
          27 kB
        12. screenshot-2.png
          screenshot-2.png
          29 kB
        13. screenshot-3.png
          screenshot-3.png
          221 kB

            noeldemartin Noel De Martin
            jleyva Juan Leyva
            Dani Palou Dani Palou
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            5 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

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