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

Calendar event type cannot be changed from type "user"

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-76061-MOODLE_401_STABLE
    • MDL-76061-master
    • Hide
      • Log in as teacher with at least one course enroled as teacher (so you have the capability `moodle/calendar:manageevents`)
      • Go to the calendar
      • Create a calendar event of type "user" and save
      • Edit the created event, change its type to "course", select a course from the list, save.
      • Without patch: Ensure you are seeing the error message posted in this issue
      • With patch: Ensure the event type has been properly changed to an event of the selected course

      Repeat for the following cases:

      • user -> course
      • user -> group
      • user -> category
      Show
      Log in as teacher with at least one course enroled as teacher (so you have the capability `moodle/calendar:manageevents`) Go to the calendar Create a calendar event of type "user" and save Edit the created event, change its type to "course", select a course from the list, save. Without patch: Ensure you are seeing the error message posted in this issue With patch: Ensure the event type has been properly changed to an event of the selected course Repeat for the following cases: user -> course user -> group user -> category

      A calendar event of type "user" cannot be changed to type "course". An error is being shown with the following stack trace:

      Error code: nopermissiontoupdatecalendar
      * line 597 of /calendar/lib.php: moodle_exception thrown
      * line 940 of /calendar/externallib.php: call to calendar_event->update()
      * line ? of unknownfile: call to core_calendar_external::submit_create_update_form()
      * line 261 of /lib/externallib.php: call to call_user_func_array()
      * line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
      

      Probably also affects moodle versions 3.11 and below, but I do not have an instance to test right now.

        1. 400_nopatch.gif
          400_nopatch.gif
          421 kB
        2. 400.gif
          400.gif
          454 kB
        3. 401_nopatch.gif
          401_nopatch.gif
          466 kB
        4. 401.gif
          401.gif
          458 kB
        5. master_nopacth.gif
          master_nopacth.gif
          381 kB
        6. master.gif
          master.gif
          564 kB
        7. screenshot-1.png
          screenshot-1.png
          42 kB

            phmemmel PhMemmel
            phmemmel PhMemmel
            Meirza Meirza
            Jun Pataleta Jun Pataleta
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 1 hour, 2 minutes
                2d 1h 2m

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