From d916ef191af28ef85129d3ab7076ef923d29fd2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Sat, 29 Aug 2020 12:02:17 +0200 Subject: [PATCH] Update card modification date on label/user assignment changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/AssignmentService.php | 4 ++-- lib/Service/CardService.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Service/AssignmentService.php b/lib/Service/AssignmentService.php index b3210bc44..929a11a70 100644 --- a/lib/Service/AssignmentService.php +++ b/lib/Service/AssignmentService.php @@ -148,7 +148,7 @@ public function assignUser($cardId, $userId, int $type = AssignedUsers::TYPE_USE $assignment->setParticipant($userId); $assignment->setType($type); $assignment = $this->assignedUsersMapper->insert($assignment); - $this->changeHelper->cardChanged($cardId, false); + $this->changeHelper->cardChanged($cardId); $this->activityManager->triggerEvent(ActivityManager::DECK_OBJECT_CARD, $card, ActivityManager::SUBJECT_CARD_USER_ASSIGN, ['assigneduser' => $userId]); $this->eventDispatcher->dispatch( @@ -185,7 +185,7 @@ public function unassignUser($cardId, $userId, $type = 0) { $assignment = $this->assignedUsersMapper->delete($assignment); $card = $this->cardMapper->find($cardId); $this->activityManager->triggerEvent(ActivityManager::DECK_OBJECT_CARD, $card, ActivityManager::SUBJECT_CARD_USER_UNASSIGN, ['assigneduser' => $userId]); - $this->changeHelper->cardChanged($cardId, false); + $this->changeHelper->cardChanged($cardId); $this->eventDispatcher->dispatch( '\OCA\Deck\Card::onUpdate', new FTSEvent(null, ['id' => $cardId, 'card' => $card]) diff --git a/lib/Service/CardService.php b/lib/Service/CardService.php index 030c10e5c..a94df2e07 100644 --- a/lib/Service/CardService.php +++ b/lib/Service/CardService.php @@ -538,7 +538,7 @@ public function assignLabel($cardId, $labelId) { } $label = $this->labelMapper->find($labelId); $this->cardMapper->assignLabel($cardId, $labelId); - $this->changeHelper->cardChanged($cardId, false); + $this->changeHelper->cardChanged($cardId); $this->activityManager->triggerEvent(ActivityManager::DECK_OBJECT_CARD, $card, ActivityManager::SUBJECT_LABEL_ASSIGN, ['label' => $label]); $this->eventDispatcher->dispatch( @@ -574,7 +574,7 @@ public function removeLabel($cardId, $labelId) { } $label = $this->labelMapper->find($labelId); $this->cardMapper->removeLabel($cardId, $labelId); - $this->changeHelper->cardChanged($cardId, false); + $this->changeHelper->cardChanged($cardId); $this->activityManager->triggerEvent(ActivityManager::DECK_OBJECT_CARD, $card, ActivityManager::SUBJECT_LABEL_UNASSING, ['label' => $label]); $this->eventDispatcher->dispatch(