Moodle

Docking the settings block doesn't work on some pages

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Usability
  • Labels:
    None
  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

I'm viewing the list of participants for the site on user/index.php?id=1. The settings block is un-docked. If I click on the "Move to side panel" button, I get an error:

You are trying to use an invalid course ID: ()

Stack trace:

  • line 37 of /user/index.php: call to print_error()

I'm looking in user/index.php now to see if something is missing.

Activity

Hide
Sam Hemelryk added a comment -

Made a couple of changes the way in which the link that is associated to the move position icon is generated.
This ensures that should there be a JavaScript error and you get redirected it will still do what it is supposed to and you wont end up at an error page.
Cheers

Show
Sam Hemelryk added a comment - Made a couple of changes the way in which the link that is associated to the move position icon is generated. This ensures that should there be a JavaScript error and you get redirected it will still do what it is supposed to and you wont end up at an error page. Cheers

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: