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

Cannot edit course settings if course is in hidden category.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5.1, FRONTEND
    • Component/s: Course
    • Labels:
    • Testing Instructions:
      Hide
      1. Create course category
      2. Create course in this category, enrol user as a teacher
      3. Hide this category (course will be hidden as well)
      4. Login as teacher, make sure you can edit this course AND move it to another category

      (Teacher won't be able to move it back though)

      Show
      Create course category Create course in this category, enrol user as a teacher Hide this category (course will be hidden as well) Login as teacher, make sure you can edit this course AND move it to another category (Teacher won't be able to move it back though)
    • Workaround:
      Hide

      Give those users capability to view hidden categories in system context or the particular category context

      Show
      Give those users capability to view hidden categories in system context or the particular category context
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull Master Branch:
      wip-MDL-40088-master

      Description

      Upgraded school system to 2.5.latest. Teachers cannot edit settings in their courses.
      Testing method:
      Make category. Hide.
      Add class to that category.
      Add teacher in teacher role to that class.
      Enroll teacher in class.
      Try to change settings.

      Once you do this, you will receive:
      Category not known!
      on the results page. The error page gives no help:
      http://docs.moodle.org/25/en/error/moodle/unknowcategory

      By comparison:
      1.9 will allow you to do this, even if the teacher is not enrolled.
      2.4 will allow you to do this, if the teacher is enrolled.

      Thanks very much!

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  8/Jul/13