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

Categories with Sub-Categories Should not Show "(0)" Courses

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.1.1, 2.2
    • Fix Version/s: 2.1.2
    • Component/s: Navigation
    • Labels:
    • Testing Instructions:
      Hide

      1/ Create two categories, 'Category A' and 'Category B'
      2/ Create a course 'course 1' and add it to category A
      3/ Go to front page settings and select 'list of categories' as display when logged in
      4/ View front page and see the list of categories

      Expected result:
      ------------------------
      Two categories displayed:
      'Category A (1)'
      'Category B'

      Actual result:
      ------------------------
      'Category A' (1)'
      'Category B (0)'

      Show
      1/ Create two categories, 'Category A' and 'Category B' 2/ Create a course 'course 1' and add it to category A 3/ Go to front page settings and select 'list of categories' as display when logged in 4/ View front page and see the list of categories Expected result: ------------------------ Two categories displayed: 'Category A (1)' 'Category B' Actual result: ------------------------ 'Category A' (1)' 'Category B (0)'
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      This is a trivial suggested improvement which I believe would make course organization a little clearer. Currently, when one builds a heirarchy of course categories and sub-categories, if a category has no courses directly listed then it will show on the list of courses a "(0)" next to the name. This way, it appears as though the highest-level categories are showing that they contain nothing. I think it would be better if a categories which contain no courses directly but rather sub-categories with courses, no number should be displayed. I have attached a picture showing the current view and this proposed change. An alternative is to have this number indicate the total number of courses contained within the category and sub-categories.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    10/Oct/11