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

Return URL is incorrect on course editing page

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.8, 2.2.5, 2.3.2
    • Fix Version/s: 2.2.7, 2.3.4
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide
      1. Log in as admin/teacher
      2. Navigate to a course
      3. Click Edit settings under Course admin
      4. Click Turn settings on/off from Course admin
      5. Verify the user is returned to the course settings page and edit mode is turned off/on.
      Show
      Log in as admin/teacher Navigate to a course Click Edit settings under Course admin Click Turn settings on/off from Course admin Verify the user is returned to the course settings page and edit mode is turned off/on.
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-36302-master

      Description

      There are a number of actions that lead away from the course editing page after which the user is returned. This includes adding/deleting/moving blocks, changing languages and turning editing on/off. Currently there is a problem with these actions. When the system tries to return the user to the course settings page, an error is given.

      Replication steps:

      1. Log in as admin/teacher
      2. Navigate to a course
      3. Click Edit settings under Course admin
      4. Click Turn editing on/off from Course admin

      Expected result: The user is returned to the course settings page

      Actual result: An error is shown...

      Either course id or category must be specified
       
      More information about this error
      Debug info:
      Error code: needcoursecategroyid
      Stack trace:
       
          line 467 of \lib\setuplib.php: moodle_exception thrown
          line 62 of \course\edit.php: call to print_error()

      I think the return URL issue is a recent development after MDL-32184, however there was a problem prior to this that was caused by the page URL being incorrect.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    14/Jan/13