mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-02 19:01:03 +01:00
make transaction edits work
Summary: Fixes T3621. We had a fatal from a non-existent function. Also changes form to full width. Test Plan: edited and it worked! looked better too! Reviewers: epriestley, chad Reviewed By: chad CC: aran, Korvin Maniphest Tasks: T3621 Differential Revision: https://secure.phabricator.com/D6571
This commit is contained in:
parent
f666538702
commit
63c33eeb5d
1 changed files with 6 additions and 3 deletions
|
@ -49,7 +49,7 @@ final class PhabricatorApplicationTransactionCommentEditController
|
||||||
|
|
||||||
$editor = id(new PhabricatorApplicationTransactionCommentEditor())
|
$editor = id(new PhabricatorApplicationTransactionCommentEditor())
|
||||||
->setActor($user)
|
->setActor($user)
|
||||||
->setContentSourceFromRequest($request)
|
->setContentSource(PhabricatorContentSource::newFromRequest($request))
|
||||||
->applyEdit($xaction, $comment);
|
->applyEdit($xaction, $comment);
|
||||||
|
|
||||||
if ($request->isAjax()) {
|
if ($request->isAjax()) {
|
||||||
|
@ -69,9 +69,12 @@ final class PhabricatorApplicationTransactionCommentEditController
|
||||||
$dialog
|
$dialog
|
||||||
->addHiddenInput('anchor', $request->getStr('anchor'))
|
->addHiddenInput('anchor', $request->getStr('anchor'))
|
||||||
->appendChild(
|
->appendChild(
|
||||||
id(new PhabricatorRemarkupControl())
|
id(new AphrontFormLayoutView())
|
||||||
|
->setFullWidth(true)
|
||||||
|
->appendChild(
|
||||||
|
id(new PhabricatorRemarkupControl())
|
||||||
->setName('text')
|
->setName('text')
|
||||||
->setValue($xaction->getComment()->getContent()));
|
->setValue($xaction->getComment()->getContent())));
|
||||||
|
|
||||||
$dialog
|
$dialog
|
||||||
->addSubmitButton(pht('Edit Comment'))
|
->addSubmitButton(pht('Edit Comment'))
|
||||||
|
|
Loading…
Reference in a new issue