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

Course Copy in 3.9 and 3.9.1 not working for teacher with extended permissions

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Login as admin
      2. Navigate to Users > Permissions > Define roles in site administration
      3. Edit the Teacher role
      4. Allow the following capabilities:
        • moodle/course:create
        • moodle/course:view
      5. Create a new user
      6. Create a new course
      7. Enrol new user as a teacher in the new course
      8. Log out
      9. Log in as the new user
      10. Navigate to the new course
      11. Select Copy course from the Actions menu
      12. Fill in the Course full name and Course short name fields
      13. Confirm Include user data field is frozen to No
      14. Press Copy and view
      15. Confirm course to be copied to is listed under Course copies in progress
      16. Run cron
      17. Confirm course to be copied is created
      Show
      Login as admin Navigate to Users > Permissions > Define roles in site administration Edit the Teacher role Allow the following capabilities : moodle/course:create moodle/course:view Create a new user Create a new course Enrol new user as a teacher in the new course Log out Log in as the new user Navigate to the new course Select Copy course from the Actions menu Fill in the Course full name and Course short name fields Confirm Include user data field is frozen to No Press Copy and view Confirm course to be copied to is listed under Course copies in progress Run cron Confirm course to be copied is created
    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_39_STABLE
    • Pull 3.9 Branch:
    • Pull 3.10 Branch:
      MDL-69448-310
    • Pull Master Branch:

      Description

      Hello,

      I made a fresh moodle Install with 3.9 and 3.9.1.

      I modified the teacher role with the permissions found here: https://docs.moodle.org/39/en/Course_copy

      The teacher sees the copy menue item in the course under the gear icon. After clicking on the button the copy dialoge appears but without "include user data" and "include role enrolements". After clicking on the button "copy and view" nothing happens instand I geht the error message

      error/copy_class_field_not_found

      As an admin copying is no problem.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pholden Paul Holden
              Reporter:
              Sanders Tobias Sanders
              Peer reviewer:
              Mihail Geshoski
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Janelle Barcega
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Sep/20

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 10 minutes
                  2h 10m