1
0
Fork 0
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:
Bob Trahan 2013-07-25 17:40:33 -07:00
parent f666538702
commit 63c33eeb5d

View file

@ -49,7 +49,7 @@ final class PhabricatorApplicationTransactionCommentEditController
$editor = id(new PhabricatorApplicationTransactionCommentEditor())
->setActor($user)
->setContentSourceFromRequest($request)
->setContentSource(PhabricatorContentSource::newFromRequest($request))
->applyEdit($xaction, $comment);
if ($request->isAjax()) {
@ -69,9 +69,12 @@ final class PhabricatorApplicationTransactionCommentEditController
$dialog
->addHiddenInput('anchor', $request->getStr('anchor'))
->appendChild(
id(new PhabricatorRemarkupControl())
id(new AphrontFormLayoutView())
->setFullWidth(true)
->appendChild(
id(new PhabricatorRemarkupControl())
->setName('text')
->setValue($xaction->getComment()->getContent()));
->setValue($xaction->getComment()->getContent())));
$dialog
->addSubmitButton(pht('Edit Comment'))