Moodle

Bug when navigation is called to generate for a module reflected by page context but cm has not been set

Details

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

Description

If the PAGE context has been set to that of a modules context but the the module has not been set notices are displayed to the user.
Simple fix, make navigation do the work. If the this situation arrises (modedit then click the assign roles tab) navigaiton will generate the module instance from the context and set it against PAGE.

Activity

Hide
Sam Hemelryk added a comment -

All done, now fails gracefully if something is missing

Show
Sam Hemelryk added a comment - All done, now fails gracefully if something is missing

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: