1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-27 05:59:08 +01:00
phorge-phorge/src/applications/phriction/controller
Bob Trahan 37bc0474fe Phriction - consolidate edit business logic into Editor
Summary:
Ref T4029. Some business logic lives outside the editor. This revision moves that logic from the edit controller into the editor proper. This makes re-using that business logic across other endpoints - say like a conduit end point - possible. This is also part of the general modernization quest for phriction I am on.

This diff also restores the functionality where you can delete a document by wiping out the content and saving.

Test Plan: tried to make a document with no title or content and saw errors. opened a document for edit with user 1, then made edits with user 2, then saw an error when i made the edit with user 1. clicking "overwrite changes" then worked.  deleted a document by wiping out the body and clicking save.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T4029

Differential Revision: https://secure.phabricator.com/D10795
2014-11-06 14:02:52 -08:00
..
PhrictionController.php Remove @group annotations 2014-07-10 08:12:48 +10:00
PhrictionDeleteController.php Phriction - move delete to modern editor + transactions 2014-11-05 12:37:53 -08:00
PhrictionDiffController.php Remove @group annotations 2014-07-10 08:12:48 +10:00
PhrictionDocumentController.php Minor formatting changes 2014-10-08 08:39:49 +11:00
PhrictionDocumentPreviewController.php Remove @group annotations 2014-07-10 08:12:48 +10:00
PhrictionEditController.php Phriction - consolidate edit business logic into Editor 2014-11-06 14:02:52 -08:00
PhrictionHistoryController.php Remove all device = true from page construction 2014-06-23 15:18:14 -07:00
PhrictionListController.php Decouple some aspects of request routing and construction 2014-10-17 05:01:40 -07:00
PhrictionMoveController.php Phriction - move "move" to modern editor + transactions 2014-11-05 12:48:17 -08:00
PhrictionNewController.php Minor formatting changes 2014-10-08 08:39:49 +11:00