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

setting up the default for My Home page produces block/course_overview:addinstance notice

    Details

    • Testing Instructions:
      Hide
      1. Log in as admin.
      2. Ensure debugging is enabled (Site admin > Development > Debugging).
      3. Visit the default setting for 'My home page' (Site admin > Appearance > Default my home page).
      4. Click "Customise this page".
      5. Ensure no debugging message is shown.
      6. Visit '<yoursite>/admin/tool/capability/index.php' and ensure no debugging is shown about a missing string.
      7. In the search box type 'course_over' to display the block/course_overview:addinstance capability and ensure there is a readable description.
      Show
      Log in as admin. Ensure debugging is enabled (Site admin > Development > Debugging). Visit the default setting for 'My home page' (Site admin > Appearance > Default my home page). Click "Customise this page". Ensure no debugging message is shown. Visit '<yoursite>/admin/tool/capability/index.php' and ensure no debugging is shown about a missing string. In the search box type 'course_over' to display the block/course_overview:addinstance capability and ensure there is a readable description.
    • Affected Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull Master Branch:
      MDL-40662_master
    • Story Points (Obsolete):
      8
    • Sprint:
      BACKEND Sprint 3

      Description

      Reproduction steps:

      1. Log in as admin
      2. Ensure debugging is enabled (Site admin > Development > Debugging)
      3. Visit the default setting for 'My home page' (Site admin > Appearance > Default my home page)
      4. Click "Customise this page"

      Notice the following error:

      The block course_overview does not define the standard capability block/course_overview:addinstance
      
          line 606 of /blocks/moodleblock.class.php: call to debugging()
          line 584 of /blocks/moodleblock.class.php: call to block_base->has_add_block_capability()
          line 1090 of /lib/blocklib.php: call to block_base->user_can_addto()
          line 1047 of /lib/blocklib.php: call to block_manager->user_can_delete_block()
          line 256 of /blocks/moodleblock.class.php: call to block_manager->edit_controls()
          line 951 of /lib/blocklib.php: call to block_base->get_content_for_output()
          line 1003 of /lib/blocklib.php: call to block_manager->create_block_contents()
          line 353 of /lib/blocklib.php: call to block_manager->ensure_content_created()
          line 3068 of /lib/outputrenderers.php: call to block_manager->region_has_content()
          line 3104 of /lib/outputrenderers.php: call to core_renderer->body_css_classes()
          line 49 of /theme/clean/layout/columns3.php: call to core_renderer->body_attributes()
          line 847 of /lib/outputrenderers.php: call to include()
          line 777 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
          line 99 of /my/indexsys.php: call to core_renderer->header()
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  1 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    9/Sep/13