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

Configuring a block allows a user to set a region that is not used by the page

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.8.3, 3.11.6
    • None
    • Blocks, Themes
    • None

    Description

      /blocks/edit_form.php uses $this->page->theme->get_all_block_regions() to start the list of options for the 'On this page' -> 'Region' dropdown. It then adds 'custom regions of this particular page too'

      This leads to blocks disappearing. Only the regions available on the page should be in the list.

      I suspect this is an edge case as our theme has multiple regions that are only used on the dashboard layout. But it will affect other themes.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              amanda.doughty Amanda Doughty
              David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, Huong Nguyen, Bas Brands, Mathew May
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: