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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user