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

The Mooodle library lib/moodlelib.php does not update the property timemodified on deletion methods, to pass to the deleted events.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2.2
    • Component/s: Libraries
    • Labels:

      Description

      The Mooodle library lib/moodlelib.php does not update the user->timemodified nor the course->timemodified on deletion methods, to pass to the user_deleted and course_deleted events.

      The user record gets the property timemodified updated when set to deleted, but it is not passed to the user_deleted event, which would register inconsistent values.
      Analogously, the course_deleted event should update the timemodified property before triggering the event. The course is in fact removed from the database, but the course deleted event may require to know the real time that happened.

      Patch included.

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            luis.alcantara Luis Gustavo Mueller de Alcantara
            Integrator:
            Sam Hemelryk
            Tester:
            Rossiani Wijaya
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              12/Mar/12