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

Fatal error in editcategory.php when users has manager role at category level

XMLWordPrintable

    • MOODLE_22_STABLE
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • wip-MDL-32611-m23
    • Hide
      1. Log in as an admin
      2. Create a new category called "Management test"
      3. Browse to that category and turn on editing if its not already on.
      4. Click the button to add a sub category and check there are no errors on the page.
      5. Create a new user called "manager"
      6. Browse to the management test category and assign the manager user the role of manager
      7. Log in as manager
      8. Browse to the management test category and turn editing on
      9. Click the button to add a sub category and check you don't get any errors.
      Show
      Log in as an admin Create a new category called "Management test" Browse to that category and turn on editing if its not already on. Click the button to add a sub category and check there are no errors on the page. Create a new user called "manager" Browse to the management test category and assign the manager user the role of manager Log in as manager Browse to the management test category and turn editing on Click the button to add a sub category and check you don't get any errors.

      To reporduce in Moodle 2.2.2+ (Build: 20120412)

      • as admin 1) create a user USR 2) create a category CAT 3) turn debugging on
      • assign to previously created user USR the manager role at category level CAT
      • login as USR
      • go to the category USR has manager role in
      • turn editing on
      • click on "add a sub category"
      • the following error is displayed: Fatal error: Call to a member function get() on a non-object in ..../editcategory.php on line 139

      It appears something related to navigation, as the line is

      $PAGE->settingsnav->get('root')->get('courses')->get('coursemgmt')->make_active();

            samhemelryk Sam Hemelryk
            andreabix Andrea Bicciolo
            Dan Poltawski Dan Poltawski
            Frédéric Massart Frédéric Massart
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.