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

block_myoverview: Add admin setting to control the output of the course category

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      1. Log in as Admin and create at least two courses in multiple categories
      2. Create a user and enrol them in these courses
      3. Navigate to Site administration > Plugins > Manage Blocks
      4. You should see a 'Settings' link associated with 'Course overview'
      5. Clicking that link should take you to settings page
      6. There should be a setting labeled 'Display Categories', check the box associated and save changes
      7. Log in as created user and click 'Dashboard'
      8. In the card labelled 'Course overview' you should see the courses the user has been enrolled in and they should have their category (eg 'Miscellanious) visible above the course name
      9. Change the layout using the top right dropdown between 'Card', 'List' and 'Summary', each should display the course category above the course name
      10. Log back in as Admin and navigate back to the 'Course overview' settings
      11. Change the 'Display Categories' setting so box is unchecked and save changes
      12. Log in as user again and navigate to 'Dashboard'
      13. Now the course category should not be visible on any of the layouts for 'Course overview' 

      Show
      1. Log in as Admin and create at least two courses in multiple categories 2. Create a user and enrol them in these courses 3. Navigate to Site administration > Plugins > Manage Blocks 4. You should see a 'Settings' link associated with 'Course overview' 5. Clicking that link should take you to settings page 6. There should be a setting labeled 'Display Categories', check the box associated and save changes 7. Log in as created user and click 'Dashboard' 8. In the card labelled 'Course overview' you should see the courses the user has been enrolled in and they should have their category (eg 'Miscellanious) visible above the course name 9. Change the layout using the top right dropdown between 'Card', 'List' and 'Summary', each should display the course category above the course name 10. Log back in as Admin and navigate back to the 'Course overview' settings 11. Change the 'Display Categories' setting so box is unchecked and save changes 12. Log in as user again and navigate to 'Dashboard' 13. Now the course category should not be visible on any of the layouts for 'Course overview' 
    • Affected Branches:
      MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-64855-37_block_myoverview_course_category_display

      Description

      Since MDL-63794, the course category is displayed in addition to the course name in the My Overview block.

      Showing the course category field might make sense for some usage scenarios, but it definitely isn't needed in all usage scenarios.

      To support usage scenarios which where the course category only clutters the course overview list, I demand to have this configurable as an admin setting.

      As this block doesn't have admin settings yet, this will mean:

      • Create a new settings page below /admin/category.php?category=blocksettings for the My Overview block
      • Add a setting "block_myoverview | displaycategory" as a checkbox setting.
      • This setting can be enabled by default
      • If the admin disables this setting, the category isn't shown in the course overview block just like we have it in 3.6

      I dare to tag this as a regression of MDL-63794.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  20/May/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 5 minutes
                  1h 5m