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

Calendar event type cannot be changed from type "user"

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        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

        Issue Links

          Activity

            People

              phmemmel PhMemmel
              phmemmel PhMemmel
              Meirza Meirza
              Jun Pataleta Jun Pataleta
              Ron Carl Alfon Yu Ron Carl Alfon Yu
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                16/Jan/23

                Time Tracking

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