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

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.8.3
    • Fix Version/s: None
    • Component/s: Blocks, Themes
    • Labels:
      None
    • Affected Branches:
      MOODLE_38_STABLE

      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

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            amanda.doughty Amanda Doughty
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Bas Brands
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: