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

Sticky Block region overwrite on Dashboard does not apply if $CFG->forcedefaultmymoodle is set.

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Set $CFG->forcedefaultmymoodle = true; in config.php
      2. Login as an admin
      3. Go to the Site home page
      4. Turn editing on
      5. Add a block "Latest announcements"
      6. Click on the settings icon of the "Latest Announcements" and click on the configure option
      7. Under Page contexts select "Display throughout the entire site"
      8. Save
      9. Under Site administratrion -> Appearance -> Default Dashboard page
      10. Click on the settings for the "Latest Announcements" block and click on the configure option
      11. In the "On this page" box select the region "content"
      12. Save
      13. Click in the Dashboard in the Navigation
        1. Confirm The "Latest Announcements" block resides in the content/center region.
      14. View the "Site Home"
        1. Confirm The "Latest Announcements" block resides in the right region.
      15. Remove $CFG->forcedefaultmymoodle = true; in config.php
      16. Go to the dashboard
      17. Click on "Customize this page "
      18. Move the "Latest Announcements" block to the right
        1. Confirm The "Latest Announcements" block should reside in the right region.
      19. View the "Site Home"
        1. Confirm The "Latest Announcements" block resides in the right region.
      20. Set $CFG->forcedefaultmymoodle = true; in config.php
      21. Click in the Dashboard in the Navigation
        1. Confirm The "Latest Announcements" block resides in the content/center region.
      22. View the "Site Home"
        1. Confirm The "Latest Announcements" block resides in the right region.
      Show
      Set $CFG->forcedefaultmymoodle = true; in config.php Login as an admin Go to the Site home page Turn editing on Add a block "Latest announcements" Click on the settings icon of the "Latest Announcements" and click on the configure option Under Page contexts select "Display throughout the entire site" Save Under Site administratrion -> Appearance -> Default Dashboard page Click on the settings for the "Latest Announcements" block and click on the configure option In the "On this page" box select the region "content" Save Click in the Dashboard in the Navigation Confirm The "Latest Announcements" block resides in the content/center region. View the "Site Home" Confirm The "Latest Announcements" block resides in the right region. Remove $CFG->forcedefaultmymoodle = true; in config.php Go to the dashboard Click on "Customize this page " Move the "Latest Announcements" block to the right Confirm The "Latest Announcements" block should reside in the right region. View the "Site Home" Confirm The "Latest Announcements" block resides in the right region. Set $CFG->forcedefaultmymoodle = true; in config.php Click in the Dashboard in the Navigation Confirm The "Latest Announcements" block resides in the content/center region. View the "Site Home" Confirm The "Latest Announcements" block resides in the right region.
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-58744-master

      Description

      The region of a front page block which is set to "Display throughout the entire site" (Sticky Block) needs to be overwritten for the the Dashboard page. The overwrite is not applied for the user if $CFG->forcedefaultmymoodle is set even when editing the "Default Dashboard page" shows the the block in the right region.

      Steps for replication:

      • Set $CFG->forcedefaultmymoodle = true; in config.php
      • Login as an admin
      • Go to the Site home page
      • Turn editing on
      • Add a block "Latest announcements"
      • Click on the settings icon of the "Latest Announcements" and click on the configure option
      • Under Page contexts select "Display throughout the entire site"
      • Save
      • Under Site administratrion -> Appearance -> Default Dashboard page
      • Click on the settings for the "Latest Announcements" block and click on the configure option
      • In the "On this page" box select the region "content"
      • Save
      • Click in the Dashboard in the Navigation

      Expected result:
      The "Latest Announcements" block in the content/center region.

      Actual result:
      The "Latest Announcements" block is in the default region.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Sep/17