mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +01:00
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:
parent
c1540434f7
commit
677e161865
1 changed files with 3 additions and 0 deletions
|
@ -179,6 +179,9 @@ final class PhrictionTransactionEditor
|
||||||
case PhrictionTransaction::TYPE_MOVE_AWAY:
|
case PhrictionTransaction::TYPE_MOVE_AWAY:
|
||||||
$object->setStatus(PhrictionDocumentStatus::STATUS_MOVED);
|
$object->setStatus(PhrictionDocumentStatus::STATUS_MOVED);
|
||||||
return;
|
return;
|
||||||
|
case PhrictionTransaction::TYPE_DELETE:
|
||||||
|
$object->setStatus(PhrictionDocumentStatus::STATUS_DELETED);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue