Skip to content

Commit 2a5d301

Browse files
authored
Add $changes->getBefore() to event in reorder
Added `$changes->getBefore()` to dispatched event to be able to see the before status when reordering. Now able to hook into the event and the the changes that have been made to be able to react properly to the given changes. Signed-off-by: StPronk <stpronk@gmail.com>
1 parent 6828144 commit 2a5d301

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/CardService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ public function unarchive($id) {
539539
$this->activityManager->triggerEvent(ActivityManager::DECK_OBJECT_CARD, $newCard, ActivityManager::SUBJECT_CARD_UPDATE_UNARCHIVE);
540540
$this->changeHelper->cardChanged($id, false);
541541

542-
$this->eventDispatcher->dispatchTyped(new CardUpdatedEvent($card));
542+
$this->eventDispatcher->dispatchTyped(new CardUpdatedEvent($card, $changes->getBefore()));
543543

544544
return $newCard;
545545
}

0 commit comments

Comments
 (0)