Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-42269 Review all new events introduced in 2.6dev
  3. MDL-42581

blog_entry_deleted pushes full post record into other field

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.6
    • Fix Version/s: None
    • Component/s: Blog, Events API
    • Labels:
    • Affected Branches:
      MOODLE_26_STABLE
    • Sprint:
      BACKEND Sprint 6

      Description

      delete events should just identify the data and put the full original record to the snapshot cache.

              $event = \core\event\blog_entry_deleted::create(array(
                  'objectid'      => $this->id,
                  'relateduserid' => $this->userid,
                  'other'         => array('record' => (array) $record)
              ));
      

      1/ replace record with post id + subject in blog/locallib.php method blog_entry::delete()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rajeshtaneja Rajesh Taneja
              Reporter:
              skodak Petr Skoda
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: