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

Breadcrumbs not correctly representing course category structure

    Details

    • Testing Instructions:
      Hide
      1. Log in as an admin
      2. Browse to course/category management.
      3. Turn on editing
      4. Create three categories.
      5. Browse to the category you created second on the course/category management screen.
      6. Check that the navbar contains the correct category.
      Show
      Log in as an admin Browse to course/category management. Turn on editing Create three categories. Browse to the category you created second on the course/category management screen. Check that the navbar contains the correct category.
    • Affected Branches:
      MOODLE_24_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Pull Master Branch:
      wip-MDL-37290-m25

      Description

      When I view 'Add or Edit Courses' I see the following breadcrumbs: Home / ▶ Courses / ▶ Science / ▶ Add/edit courses

      The 'Science' category has the parent 'Top' and is the first category in the list of courses and categories.

      However ALL other courses show the same breadcrumb structure even if they are not in the science category.

      I created a 'discussion' here https://moodle.org/mod/forum/discuss.php?d=218136 which has screenshots showing the issue.

      I noticed this when courses in English failed to load when I clicked on the course link shown above. Got an error about missing table or similar (sorry did not get screenshot and error no longer appears). I moved the courses into the 'Science' category then back out to 'top' and now the courses do load fine but the bread crumbs still don't work.

      Yesterday after completing the upgrade to 2.4 I notice that I had foreign key errors e.g.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

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