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

JS error on expanding empty courses node

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.5.5, 2.6.2
    • Component/s: Navigation
    • Labels:
    • Testing Instructions:
      Hide
      1. On a site with courses test that the "Courses" branch in the navigation expands as expected and contains courses.
      2. Install a fresh site (do not create any courses).
      3. Try to expand the "Courses" branch in the navigation.
      4. Check you get the empty branch icon (outline arrow) and no JS errors.
      Show
      On a site with courses test that the "Courses" branch in the navigation expands as expected and contains courses. Install a fresh site (do not create any courses). Try to expand the "Courses" branch in the navigation. Check you get the empty branch icon (outline arrow) and no JS errors.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull Master Branch:
      43675-27
    • Pull Master Diff URL:

      Description

      In an installation which doesn't yet have any courses, expanding the courses navigation node gives an error:

      SyntaxError
      File: http://localhost/moodle/theme/yui_combo.php?rollup/3.13.0/yui-moodlesimple.js&rollup/1389647934/mcore-debug.js
      Line: 37340

      To reproduce:

      1. Install Moodle (tested on 2.7dev (Build: 20140110))
      2. Log in as admin and try to expand the courses node in the navigation block

      The underlying Ajax response is "No further information available for this branch"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              samhemelryk Sam Hemelryk
              Reporter:
              maherne Michael Aherne
              Peer reviewer:
              Mark Nelson
              Integrator:
              Damyon Wiese
              Tester:
              Andrew Davis
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Mar/14