From 677e161865a427de3c6c27ba03ef84763943116c Mon Sep 17 00:00:00 2001 From: Bob Trahan Date: Fri, 7 Nov 2014 09:08:02 -0800 Subject: [PATCH] Phriction - fix bug with delete Summary: Fixes T6489. In an earlier diff I forgot to update the document status itself, thinking that the content update percolated up magically. Restore this functionality so the wiki works better. Test Plan: deleted a document and observed that i did not get the option to delete it again and it disappeared from document index Reviewers: epriestley, chad Reviewed By: chad Subscribers: Korvin, epriestley Maniphest Tasks: T6489 Differential Revision: https://secure.phabricator.com/D10807 --- .../phriction/editor/PhrictionTransactionEditor.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/applications/phriction/editor/PhrictionTransactionEditor.php b/src/applications/phriction/editor/PhrictionTransactionEditor.php index c8bd4096de..a9e3aae896 100644 --- a/src/applications/phriction/editor/PhrictionTransactionEditor.php +++ b/src/applications/phriction/editor/PhrictionTransactionEditor.php @@ -179,6 +179,9 @@ final class PhrictionTransactionEditor case PhrictionTransaction::TYPE_MOVE_AWAY: $object->setStatus(PhrictionDocumentStatus::STATUS_MOVED); return; + case PhrictionTransaction::TYPE_DELETE: + $object->setStatus(PhrictionDocumentStatus::STATUS_DELETED); + return; } }