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

URL loses parameters after form validation error at modedit.php

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 4.1.18, 4.5.5, 5.0
    • Course
    • None
    • MOODLE_401_STABLE, MOODLE_405_STABLE, MOODLE_500_STABLE

      When submitting any activity/resource form (e.g. Quiz) with a validation error, course/modedit.php reloads without preserving URL parameters such as section, sr, or return. This causes the browser's back and forward buttons to behave unexpectedly (e.g., going to an error page ).

      Steps to Reproduce:

      1. Add a new Quiz activity to a course.
      2. Enter a validation error by setting the Close date earlier than Open date.
      3. Submit the form.

      Expected Result:
      The form should show validation errors while preserving the original URL parameters (section=, sr=, return=, etc.), so browser navigation continues to work.

      Actual Result:
      The page reloads without URL parameters. Clicking the browser back button and forward will return to an error page. 

        1. After clicking brower button.png
          43 kB
          Mi Jia Looi
        2. URL loses params.png
          81 kB
          Mi Jia Looi

            Unassigned Unassigned
            micahCodes Mi Jia Looi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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