Moodle

Administrator cannot edit or access courses more than two categories deep.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9
  • Component/s: Course
  • Labels:
    None
  • Environment:
    Debian Linux, Apache 1.3, PHP 4.4.4.8.4, MySQL 5.0.27
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

This is a bit of a weird one, not sure why it's happening.

We've got a very structured nesting of our courses and categories - partly for security but mostly to make it easier for administrators to navigate them all. For courses that are two categories deep (hidden or not), everything works as you would expect - you can edit, assign roles, enter the course, backup, restore, etc. For ANY course that's more than two categories deep (hidden or not), you can only move the courses up or down, or into another category. You cannot edit, assign roles, enter the course, backup, restore, etc. If you try to enter these courses, you are presented with whatever the enrollment options are (not enrollable, enrollable, key required) - even though you're an administrator.

Originally, I had $CFG->max_category_depth=2 in config.php, but even increasing this or removing it does not change this.

I've attached some screenshots that might make it easier to follow. Looks like the bug tracker reorders them, view in this order: cat_list1, course_list_cadd, course_list, acct, course_enter.

  1. cat_list1.JPG
    46 kB
    09/Oct/07 1:18 AM
  2. course_enter.JPG
    13 kB
    09/Oct/07 1:20 AM
  3. course_list_acct.JPG
    42 kB
    09/Oct/07 1:18 AM
  4. course_list_cadd.JPG
    32 kB
    09/Oct/07 1:18 AM

Issue Links

Activity

Hide
Matt Campbell added a comment -

Just worked through this on a box with PHP5, and this does NOT occur. Appears to be something with PHP4.

Show
Matt Campbell added a comment - Just worked through this on a box with PHP5, and this does NOT occur. Appears to be something with PHP4.
Hide
Matt Campbell added a comment -

Hmmm. In mdl_course_categories, I set sort order = 999 where depth > 2, and everything works. Still not quite sure I've diagnosed this properly or what exactly is causing it.

Show
Matt Campbell added a comment - Hmmm. In mdl_course_categories, I set sort order = 999 where depth > 2, and everything works. Still not quite sure I've diagnosed this properly or what exactly is causing it.
Hide
Martin Dougiamas added a comment -

Petr, can you look at this and the linked bug?

Show
Martin Dougiamas added a comment - Petr, can you look at this and the linked bug?
Hide
Petr Škoda (skodak) added a comment -

I can not replicate this problem on my fresh new Ubuntu 6.06 with PHP 4

Show
Petr Škoda (skodak) added a comment - I can not replicate this problem on my fresh new Ubuntu 6.06 with PHP 4
Hide
Julian Ridden added a comment -

This is definitely a bug as it has also occurred on my install. I have added my notes to the linked bug report.

Show
Julian Ridden added a comment - This is definitely a bug as it has also occurred on my install. I have added my notes to the linked bug report.
Hide
Matt Campbell added a comment -

Resolved in MDL-11532

Show
Matt Campbell added a comment - Resolved in MDL-11532

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: