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

"Clear my choice" a href calls for a page reload

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.7
    • Fix Version/s: 3.7
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide
      1. Log in as admin.
      2. Go to a course and create a quiz setting Question behaviour to Interactive with multiple tries
      3. Edit Quiz and add a multiple choice question with single response
      4. Attempt the quiz and click in one of the choices.
      5. Once the Clear my choice option appears, click in it.
      6. Make sure the choice is cleared and you should not see a form change checker dialog (see attached gif)
      Show
      Log in as admin. Go to a course and create a quiz setting Question behaviour to Interactive with multiple tries Edit Quiz and add a multiple choice question with single response Attempt the quiz and click in one of the choices. Once the Clear my choice option appears, click in it. Make sure the choice is cleared and you should not see a form change checker dialog (see attached gif)
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-65560-master

      Description

      Unfortunately, since a last minute modification, "Clear my choice" has an odd behaviour.
      Since it was conceived to simply undo a option choice, it has not been reloading the whole page. But now it is exactly what is happening, and therefore some browser prompt the "Are you sure you want to leave this page" dialogue.

      Note you don't see this happening in a single question preview but you have to test this in the quiz attempt itself.

       

        Attachments

        1. Clear my choice.gif
          533 kB
          Luca Bösch
        2. image-2019-05-14-09-29-04-244.png
          48 kB
          Janelle Barcega

          Issue Links

            Activity

              People

              • Assignee:
                lameze Simey Lameze
                Reporter:
                lucaboesch Luca Bösch
                Peer reviewer:
                Luca Bösch
                Integrator:
                Adrian Greeve
                Tester:
                Janelle Barcega
                Participants:
                Component watchers:
                Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  20/May/19

                  Time Tracking

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