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

Changing configuration of blocks on admin pages is not reversable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.9.2
    • Fix Version/s: None
    • Component/s: Administration, Blocks
    • Labels:
    • Affected Branches:
      MOODLE_29_STABLE

      Description

      • navigate to /admin/
      • turn editing on
      • configure the Administration block
      • change "Display on page types" to "The current site administration page"
      • The block is now hidden from non admin pages (expected)
      • configure the Administration block again (from /admin/)
      • Option for "Any page" is removed from "Display on page types" and the block is forever lost from non admin pages.

      I had to fix this manually by setting pagetypepattern='*' in block_instances table for the settings id

      Seems this line is to blame in code: https://github.com/moodle/moodle/blob/MOODLE_29_STABLE/lib/blocklib.php#L1844 because currentcontext and parentcontext are the same.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jtomkinson Jordan Tomkinson
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: