mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 23:32:40 +01:00
Phriction - fix "unknown policy" on document create
Summary: when creating new documents the policy object wasn't being initialized properly. update the code to use the new handy initializeNewDocument method. Fixes T6527. Test Plan: viewed a doc at /w/asdsadsadsdas/ and saw the correct policy setting Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6527 Differential Revision: https://secure.phabricator.com/D10837
This commit is contained in:
parent
ac87ab275a
commit
36c46d80f5
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ final class PhrictionDocumentController
|
||||||
|
|
||||||
if (!$document) {
|
if (!$document) {
|
||||||
|
|
||||||
$document = new PhrictionDocument();
|
$document = PhrictionDocument::initializeNewDocument($user, $slug);
|
||||||
|
|
||||||
$create_uri = '/phriction/edit/?slug='.$slug;
|
$create_uri = '/phriction/edit/?slug='.$slug;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue