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

Question number customisation for quiz follow-up issues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2
    • 4.2
    • Quiz
    • MOODLE_402_STABLE
    • MOODLE_402_STABLE
    • Hide
      1. In a test course, as teacher.
      2. Create a quiz (settings not important).
      3. Add some questions (on the Questions tab, question types not critical, but True/False are quickest to create).
      4. Edit the numbers of some of the questions.
      5. Try including some tricky Unicode and HTML characters, like &, &, accents, etc.
      6. Verify the values are staved exactly as typed, and can be edited again. [ This tests point 3a of the bug report. ]
      7. Try typeing some content which might be affected by a filter (e.g. $$x+1$$).
      8. Verify that filters are not applied to the question number. [ This tests point 3b of the bug report. ]
      9. In the mobile app, log in as a student in the course.
      10. Try to preview / attempt the quiz.
      11. Verify there are no errors. [ This tests point 1 of the bug report. ]
      12. Go back to the Questions page. Turn the 'Shuffle' checkbox on.
      13. Verify that the customisable numbers should be hidden, and the standard numbers shown with no way to edit. [ This tests point 2 of the bug report. ]
      14. Turn 'Shuffle' off again.
      15. Verify that the customised numbers are shown again, including and custom values that were present before you turned shuffle on.
      Show
      In a test course, as teacher. Create a quiz (settings not important). Add some questions (on the Questions tab, question types not critical, but True/False are quickest to create). Edit the numbers of some of the questions. Try including some tricky Unicode and HTML characters, like &, &, accents, etc. Verify the values are staved exactly as typed, and can be edited again. [ This tests point 3a of the bug report. ] Try typeing some content which might be affected by a filter (e.g. $$x+1$$). Verify that filters are not applied to the question number. [ This tests point 3b of the bug report. ] In the mobile app , log in as a student in the course. Try to preview / attempt the quiz. Verify there are no errors. [ This tests point 1 of the bug report. ] Go back to the Questions page. Turn the 'Shuffle' checkbox on. Verify that the customisable numbers should be hidden, and the standard numbers shown with no way to edit. [ This tests point 2 of the bug report. ] Turn 'Shuffle' off again. Verify that the customised numbers are shown again, including and custom values that were present before you turned shuffle on.

      Hi there,

      while testing this functionally in the mobile app we've noticed the following issues:

      1. Web Services are broken, it seems originally the question number was an integer and it was not properly updated in WebServices that returns this information

      "Invalid response value detected (questions => Invalid response value detected (number => Invalid response value detected (Invalid external api response: the value is "B" of PHP type "string", the server was expecting "int" type): Invalid external api response: the value is "B" of PHP type "string", the server was expecting "int" type): number => Invalid response value detected (Invalid external api response: the value is "B" of PHP type "string", the server was expecting "int" type): Invalid external api response: the value is "B" of PHP type "string", the server was expecting "int" type)"

      2. If I change the custom question number, and then changed to shuffle

      • I don't see any warning
      • If I reload the question page it looks no custom question number, everything returns to 1,2,3,.. but student stills sees the custom question numbers now shuffled

      3. I tried several inputs in the question custom number field:

      • If I type L'Aina Lluís^ there is a SyntaxError: Unexpected end of JSON input
        at parse (<anonymous>)
        at ajaxConvert (XX/lib/javascript.php/-1/lib/jquery/jquery-3.6.1.js:9294:19)
        at done (XX/lib/javascript.php/-1/lib/jquery/jquery-3.6.1.js:9772:15)
        at XMLHttpRequest.<anonymous> (XX/lib/javascript.php/-1/lib/jquery/jquery-3.6.1.js:10083:9)
        ^ L'Aina works, and Lluís too.
      • (MINOR) If a teacher adds a TeX on the custom question number (for example $$a$$), the teacher sees it like it is ok (a instead of $$a$$). But the student sees it without the formatting ($$a$$). If Moodle doesn't accept TeX on the custom question number then it should be clear to the teacher. Please notice that we are allowing filtering in headers (in Moodle's filters settings)

      4. edit_renderer::get_checkbox_render is using the customsied question number in the checkbox id (caused by MDL-71696).

            timhunt Tim Hunt
            jleyva Juan Leyva
            Mahmoud Kassaei Mahmoud Kassaei
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            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 - 2 days, 12 minutes
                2d 12m

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