From e16c561d68178b0a1904dc732cc1419e818a48b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 10 Nov 2020 18:02:08 +0100 Subject: [PATCH] Propagate ETag when an attachment is being marked as deleted MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/AttachmentService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Service/AttachmentService.php b/lib/Service/AttachmentService.php index e80210329..42f913439 100644 --- a/lib/Service/AttachmentService.php +++ b/lib/Service/AttachmentService.php @@ -320,6 +320,7 @@ public function delete($attachmentId) { if ($service->allowUndo()) { $service->markAsDeleted($attachment); $this->activityManager->triggerEvent(ActivityManager::DECK_OBJECT_CARD, $attachment, ActivityManager::SUBJECT_ATTACHMENT_DELETE); + $this->changeHelper->cardChanged($attachment->getCardId()); return $this->attachmentMapper->update($attachment); } $service->delete($attachment);