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

    • Icon: Bug Bug
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 3.8.3, 3.11.6
    • Blocks, Themes
    • None
    • MOODLE_311_STABLE, MOODLE_38_STABLE
    • Hide

      Using the Classic theme, which has left and right block regions on various pages, but only one of them (side-pre) in the 'admin' or 'coursecategory' layouts.

      If you go to a course category or admin page, turn editing on and edit a block, the block config page will offer you the option of "Right" as a region to put it for the current page, but since there is no "Right" region for the current page, it will put it into the region set as default (Left in this case).

      Show
      Using the Classic theme, which has left and right block regions on various pages, but only one of them (side-pre) in the 'admin' or 'coursecategory' layouts. If you go to a course category or admin page, turn editing on and edit a block, the block config page will offer you the option of "Right" as a region to put it for the current page, but since there is no "Right" region for the current page, it will put it into the region set as default (Left in this case).

      /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.

            Unassigned Unassigned
            amanda.doughty Amanda Doughty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.