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

Front Page Dropdown Arrow not Functioning (backport MDL-38661)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5, 2.5.1
    • Fix Version/s: 2.5.4
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      Hide

      Mostly copied from MDL-38661

      Test on:

      • Some browsers, but at least IE8

      Preparation:

      • Configure your Front Page to have:
        • Combo list
        • Categories list
      • Set maximum category depth to 2
      • Ensure you have a few courses and categories, and subcategories
      • Some of your courses should have teachers enrolled and a description

      Assuming you set everything up correctly, your front page Combo list should show:

      • Top level Category
        • Second level category
        • Any courses in the top level category
          You category list should show the same
      • Top level Category
        • Second level category
        • Any courses in the top level category

      Test the combo list:

      • Make sure in combo list some/all courses have ( i ) icon on the right. If they don't add summary to the courses or enroll teachers
      • Click on ( i ) icon, make sure it toggles the course summary
      • Repeat for courses in subcategories that were not initially present on page but loaded in AJAX
        Test the category list:
      • Make sure you can collapse and expand categories

      Collapse/expand all:

      • Open any big form with collapsible form sections (i.e. edit course)
      • Make sure you can expand/collapse form sections by clicking on the section name and using "expand all"/"collapse all" links on top
      • Make sure collapse/expand all work for categories list as well
      • Check that expand/collapse works smoothly in Clean, Standard and maybe some other themes
      Show
      Mostly copied from MDL-38661 Test on: Some browsers, but at least IE8 Preparation: Configure your Front Page to have: Combo list Categories list Set maximum category depth to 2 Ensure you have a few courses and categories, and subcategories Some of your courses should have teachers enrolled and a description Assuming you set everything up correctly, your front page Combo list should show: Top level Category Second level category Any courses in the top level category You category list should show the same Top level Category Second level category Any courses in the top level category Test the combo list: Make sure in combo list some/all courses have ( i ) icon on the right. If they don't add summary to the courses or enroll teachers Click on ( i ) icon, make sure it toggles the course summary Repeat for courses in subcategories that were not initially present on page but loaded in AJAX Test the category list: Make sure you can collapse and expand categories Collapse/expand all: Open any big form with collapsible form sections (i.e. edit course) Make sure you can expand/collapse form sections by clicking on the section name and using "expand all"/"collapse all" links on top Make sure collapse/expand all work for categories list as well Check that expand/collapse works smoothly in Clean, Standard and maybe some other themes
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Story Points:
      20
    • Sprint:
      FRONTEND Sprint 7

      Description

      After upgrading, it seems we have two choices for the front page if we want a combo list of courses:
      1. Set maxcategorydepth to unlimited and the front page will show every category uncollapsed and therefore every course.

      2. Set the maxcategorydepth to some number, and the (un)collapse arrows on the frontpage will not work for any category beyond the maxcategorydepth, making it impossible to go to any courses below the maxcategorydepth without loading new pages.

      Now from the maxcategorydepth option text:
      "Deeper level categories will appear as links and user can expand them with AJAX request."

      This is not what happens. If you click on the arrow, nothing happens. If you click on the category name, it takes you to a new page.

      Now I am not a moodle user, but a moodle administrator. But from what people are telling me, this is not how moodle 2.4 functioned, so I'm guessing it's a regression.

      I'm running 2.5.1+ (Build: 20130712) (2013051401.02) and this affects both the standard theme and the new clean theme.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Jan/14