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

Edit cog is missing on the category page for managers

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      On theme Boost
      1. Log in as an admin.
      2. Create a course TC 1 under the Miscellaneous course category.
      3. Create another course category and name it as "Test category" (or whatever you like).
      4. Assign a system-wide manager role to a user (Site administration > Users > Permission > Assign system roles).
      5. Logout and login as the manager.
      6. Navigate to "Site administration / Courses / Manage courses and categories". The Miscellaneous course category should be at the end of the breadcrumb navigation.
      7. Check the top right corner of the "Course and category management" panel.
        • Confirm that there is NO action menu (cog icon) right beside "Viewing: XX" dropdown.
      8. Navigate to the course TC 1.
      9. On the breadcrumb navigation, click on the "Miscellaneous" category.
        • Confirm that you see the action menu on the upper right corner.
      10. Expand the action menu.
        • Confirm that the menu contains the following items:
          • Manage this category
          • Edit this category
          • Add a subcategory
          • Assign roles
          • Permissions
          • Check permissions
          • Cohorts
          • Filters
          • Restore course
          • Learning plan templates
          • Competency frameworks
      11. Click on "Edit this category"
        • Confirm that the you are editing the "Miscellaneous" category.
        • Confirm that there is no action menu cog containing category management menu items on the page.
      12. Click the browser's back button.
      13. Click on the "Courses" link in the breadcrumb navigation.
        • Confirm that there is no action menu cog containing category management menu items on the page.
      14. Click on the "Test category" link.
        • Confirm that you see the action menu on the upper right corner.
      15. Expand the action menu.
        • Confirm that the menu contains the items mentioned above.
      16. Click on "Edit this category"
        • Confirm that the you are editing the "Test category" category.
        • Confirm that there is no action menu cog on the page.
      On Clean
      1. Switch to the Clean theme by appending "&theme=clean" into the URL on the browser's address bar.
      2. Navigate to Site administration ► Courses ► Manage courses and categories (course/management.php).
      3. Check the Administration block.
        • Confirm that the "Category: XX" section and its nodes look the same before and after the patch and contains the items mentioned above.
      Only one course category remaining
      1. Switch to Boost theme.
      2. Navigate to Site administration / Courses / Manage courses and categories
      3. Delete Test category
      4. Navigate to course/index.php
        • Confirm that you see the action menu on the upper right corner.
      5. Expand the action menu.
        • Confirm that the menu contains the items mentioned above.
      6. Click on "Edit this category"
        • Confirm that the you are editing the "Miscellaneous" category.
      Show
      On theme Boost Log in as an admin. Create a course TC 1 under the Miscellaneous course category. Create another course category and name it as " Test category " (or whatever you like). Assign a system-wide manager role to a user (Site administration > Users > Permission > Assign system roles). Logout and login as the manager. Navigate to " Site administration / Courses / Manage courses and categories ". The Miscellaneous course category should be at the end of the breadcrumb navigation. Check the top right corner of the " Course and category management " panel. Confirm that there is NO action menu (cog icon) right beside " Viewing: XX " dropdown. Navigate to the course TC 1. On the breadcrumb navigation, click on the " Miscellaneous " category. Confirm that you see the action menu on the upper right corner. Expand the action menu. Confirm that the menu contains the following items: Manage this category Edit this category Add a subcategory Assign roles Permissions Check permissions Cohorts Filters Restore course Learning plan templates Competency frameworks Click on " Edit this category " Confirm that the you are editing the " Miscellaneous " category. Confirm that there is no action menu cog containing category management menu items on the page. Click the browser's back button. Click on the " Courses " link in the breadcrumb navigation. Confirm that there is no action menu cog containing category management menu items on the page. Click on the " Test category " link. Confirm that you see the action menu on the upper right corner. Expand the action menu. Confirm that the menu contains the items mentioned above. Click on " Edit this category " Confirm that the you are editing the " Test category " category. Confirm that there is no action menu cog on the page. On Clean Switch to the Clean theme by appending " &theme=clean " into the URL on the browser's address bar. Navigate to Site administration ► Courses ► Manage courses and categories ( course/management.php ). Check the Administration block. Confirm that the " Category: XX " section and its nodes look the same before and after the patch and contains the items mentioned above. Only one course category remaining Switch to Boost theme. Navigate to Site administration / Courses / Manage courses and categories Delete Test category Navigate to course/index.php Confirm that you see the action menu on the upper right corner. Expand the action menu. Confirm that the menu contains the items mentioned above. Click on " Edit this category " Confirm that the you are editing the " Miscellaneous " category.
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull Master Branch:
      MDL-57072-master

      Description

      Some actions are available from course category management interface but not all. For example those added by tool_lp are not. This means that any category actions added by the plugins will be missing for the category managers without "Administration" block.

        Attachments

        1. categoryactions.png
          categoryactions.png
          23 kB
        2. cog-below.png
          cog-below.png
          41 kB
        3. cog-below.png
          cog-below.png
          41 kB
        4. managecategories.png
          managecategories.png
          52 kB
        5. NO_GEAR.png
          NO_GEAR.png
          62 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/Dec/16