Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5460

Category icons limited to only 20 categories in Elegance theme

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 2.7.2
    • Theme: Elegance
    • None
    • 0.0
    • MOODLE_27_STABLE

      Using Elegance theme, with category icons on, category icons are only rendered for categories with categoryID up to 20.

      To recreate,

      • choose or create a Moodle instance with at least 21 course categories (or at least 1 course categoryID > 20)
      • turn category icons on in Elegance /admin/settings.php?section=theme_elegance_categoryicon
      • Search categories /course/index.php or /course/index.php?categoryID=<parent categoryID which includes a child category with categoryID > 20)
      • See that only categories with ID <= 20 have the category icon rendered. The others use the same CSS structure to render content, eg below:
        .course_category_tree .category[data-categoryid="21"] > .info > .categoryname a:before { content: "[[setting:categoryicon21]]"; }
      • Note also in /admin/settings.php?section=theme_elegance_categoryicon that the maximum possible setting for "Number of categories" (theme_elegance | categorynumber) is 20.

      Consider the use of a default category icon where the setting is unavailable, or increase the maximum number of categories.

            Unassigned Unassigned
            jonas jonas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.