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

Parameter 'returnto' is ignored when editing a user

    XMLWordPrintable

Details

    • MOODLE_311_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-75826-401
    • MDL-75826-master
    • Hide

      Apply the patch

      #Testing 1

      1. Log in as admin
      2. Open any user's profile
      3. Click "Edit"
      4. Verify that the URL has param `returnto=profile`
      5. Modify information
      6. Click "Update Profile"
      7. Verify that you are redirected to a Profile page

      #Testing 2

      1. Log in as admin
      2. Open any user's profile
      3. Click "Edit"
      4. Verify that the URL has param `returnto=profile`
      5. Click "Cancel"
      6. Verify that you are redirected to a Profile page

      #Testing 3

      You need to open 2 browsers and log in as an admin and a student.

      1. Go to a browser where the admin is logged in
      2. Open any user's profile
      3. Click "Edit"
      4. Verify that the URL has param `returnto=profile`
      5. Check the "Suspended Account" checkbox
      6. Click "Update Profile"
      7. Verify that you are redirected to a Profile page
      8. Go to a browser where the student is logged in
      9. Reload the page
      10. Verify that you are redirected to a login page with an alert message Your session has timed out. Please log in again.

       

      Show
      Apply the patch #Testing 1 Log in as admin Open any user's profile Click "Edit" Verify that the URL has param `returnto=profile` Modify information Click "Update Profile" Verify that you are redirected to a Profile page #Testing 2 Log in as admin Open any user's profile Click "Edit" Verify that the URL has param `returnto=profile` Click "Cancel" Verify that you are redirected to a Profile page #Testing 3 You need to open 2 browsers and log in as an admin and a student. Go to a browser where the admin is logged in Open any user's profile Click "Edit" Verify that the URL has param `returnto=profile` Check the "Suspended Account" checkbox Click "Update Profile" Verify that you are redirected to a Profile page Go to a browser where the student is logged in Reload the page Verify that you are redirected to a login page with an alert message Your session has timed out. Please log in again.  
    • 2
    • Team Hedgehog Sprint 1.1, Team Hedgehog Sprint 1.2

    Description

      1. Login as admin
      2. Open any user's profile
      3. Click "Edit"
      4. Modify information, submit
      5. Instead of returning back to user profile you are redirected to /admin/users.php

      The 'returnto' parameter in the URL is ignored
      /user/editadvanced.php?id=56&course=1&returnto=profile

      Attachments

        1. MDL-75826_1-4.png
          MDL-75826_1-4.png
          55 kB
        2. MDL-75826_1-7.png
          MDL-75826_1-7.png
          90 kB
        3. MDL-75826_2-4.png
          MDL-75826_2-4.png
          51 kB
        4. MDL-75826_2-6.png
          MDL-75826_2-6.png
          88 kB
        5. MDL-75826_3-10.png
          MDL-75826_3-10.png
          43 kB
        6. MDL-75826_3-4.png
          MDL-75826_3-4.png
          52 kB
        7. MDL-75826_3-7.png
          MDL-75826_3-7.png
          73 kB

        Activity

          People

            meirza.arson@moodle.com Meirza
            marina Marina Glancy
            Stevani Andolo Stevani Andolo
            Andrew Lyons Andrew Lyons
            Mihail Geshoski Mihail Geshoski
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 4 hours, 3 minutes
                2d 4h 3m

                Clockify

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