Moodle

Generation bug when course and category paths are identical

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Libraries
  • Labels:
    None
  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

There is a bug whereby categories appear not to be added to the navigation structure when a course is added with the same path as a category.

Don't know how I missed this one, either way I will commit a patch to resolve this after some more testing.
The patch itself combines the desired key (internally this is the structure id) with the type internally to ensure that any two elements of different types with the same id's and paths can coexist in the same point of the structure.

Activity

Hide
Sam Hemelryk added a comment -

All fixed up, node types are now merged into the keys to ensure that different nodes types with identical keys do not conflict with each other.

Show
Sam Hemelryk added a comment - All fixed up, node types are now merged into the keys to ensure that different nodes types with identical keys do not conflict with each other.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: