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

Replace add_to_log with an event trigger - calendar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7
    • 2.6
    • Calendar
    • MOODLE_26_STABLE
    • MOODLE_27_STABLE
    • MDL-40915-master
    • Hide
      1. Create and edit an calendar event, make sure a log entry is added for the same, with all correct information as before.
      2. Create a chained event (repeated) , make sure a log entry is created for each of them.
      3. Edit all events of a chain, make sure a log entry is created for each of them.
      4. Delete a event, and make sure a log entry is created.
      5. Delete all events of a chain and make sure a log entry is created for each of them.
      Show
      Create and edit an calendar event, make sure a log entry is added for the same, with all correct information as before. Create a chained event (repeated) , make sure a log entry is created for each of them. Edit all events of a chain, make sure a log entry is created for each of them. Delete a event, and make sure a log entry is created. Delete all events of a chain and make sure a log entry is created for each of them.
    • 20
    • BACKEND Sprint 12

      Replace the add_to_log calls for the following area, with a call to the get_legacy_logdata function in the event class.

      Calendar
      /calendar/lib.php:2236: add_to_log($this->properties->courseid, 'calendar', 'add', 'event.php?action=edit&id='.$this->properties->id, $this->properties->name);
      /calendar/lib.php:2265: add_to_log($eventcopy->courseid, 'calendar', 'add', 'event.php?action=edit&id='.$eventcopyid, $eventcopy->name);
      /calendar/lib.php:2320: add_to_log($this->properties->courseid, 'calendar', 'edit all', 'event.php?action=edit&id='.$this->properties->id, $this->properties->name);
      /calendar/lib.php:2325: add_to_log($this->properties->courseid, 'calendar', 'edit', 'event.php?action=edit&id='.$this->properties->id, $this->properties->name);

      Suggested additional events:
      Check to see if deleting a calendar event requires an event.

            ankit_frenz Ankit Agarwal
            abgreeve Adrian Greeve
            Petr Skoda Petr Skoda
            Marina Glancy Marina Glancy
            Jason Fowler Jason Fowler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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