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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

        1. cat_list1.JPG
          cat_list1.JPG
          46 kB
        2. course_enter.JPG
          course_enter.JPG
          13 kB
        3. course_list_acct.JPG
          course_list_acct.JPG
          42 kB
        4. course_list_cadd.JPG
          course_list_cadd.JPG
          32 kB

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              mcampbell Matt Campbell
              Tester:
              Matt Campbell
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08