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

Cannot access "Course reuse" items when only one available (plus PHP Notice)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0.5
    • 4.0.4
    • Navigation
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide
      1. Log in as admin
      2. Create a user
      3. Create a course
      4. Enrol user as a teacher
      5. Remove the following capabilities from the teacher role in the course:
        • moodle/backup:backupcourse
        • moodle/restore:restoretargetimport
        • moodle/restore:restorecourse
      6. Log out
      7. Log in as teacher
      8. Navigate to course
      9. Confirm there are no PHP errors/notices on the page
      10. Expand the More menu
      11. Press Course reuse
      12. Confirm you are on the Reset course page
      13. Log out
      14. Log in as admin
      15. Navigate to course
      16. Remove the following capabilities from the teacher role in the course:
        • moodle/course:reset
      17. Log out
      18. Log in as teacher
      19. Navigate to course
      20. Expand the More menu
      21. Confirm Course reuse is not present
      Show
      Log in as admin Create a user Create a course Enrol user as a teacher Remove the following capabilities from the teacher role in the course: moodle/backup:backupcourse moodle/restore:restoretargetimport moodle/restore:restorecourse Log out Log in as teacher Navigate to course Confirm there are no PHP errors/notices on the page Expand the More menu Press Course reuse Confirm you are on the Reset course page Log out Log in as admin Navigate to course Remove the following capabilities from the teacher role in the course: moodle/course:reset Log out Log in as teacher Navigate to course Expand the More menu Confirm Course reuse is not present

      Remove the following capabilities from a teacher:

      • moodle/backup:backupcourse
      • moodle/restore:restoretargetimport
      • moodle/restore:restorecourse

      As teacher, navigate to course - you receive following notice:

      <b>Notice</b>:  Trying to get property 'action' of non-object in <b>/var/www/html/lib/classes/navigation/views/secondary.php</b> on line <b>431</b><br />
      

      The "Course reuse" item is present, but links back to the course page itself (even though I can access course reset - seems related to MDL-73789):

      Accessing course reset works only by manually navigating to the correct URL:

        1. 1_master_MDL-75897.png
          53 kB
          John Edward Pedregosa
        2. 1_v400_MDL-75897.png
          43 kB
          John Edward Pedregosa
        3. 2_master_MDL-75897.png
          72 kB
          John Edward Pedregosa
        4. 2_v400_MDL-75897.png
          75 kB
          John Edward Pedregosa
        5. 3_master_MDL-75897.png
          36 kB
          John Edward Pedregosa
        6. 3_v400_MDL-75897.png
          33 kB
          John Edward Pedregosa
        7. error1.png
          33 kB
          Paul Holden
        8. error2.png
          36 kB
          Paul Holden
        9. error3.png
          70 kB
          Paul Holden

            pholden Paul Holden
            pholden Paul Holden
            Meirza Meirza
            Huong Nguyen Huong Nguyen
            John Edward Pedregosa John Edward Pedregosa
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 20 minutes
                6h 20m

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