mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 04:50:55 +01:00
Fix Maniphest status change previews
Summary: See IRC. This will be obsoleted by ApplicationTransactions eventually, but fix issues with stauts change previews for now. Specifically, if you select "Reopen Task", it incorrectly previews as "x created this task" because the old state is not set correctly. Test Plan: Selected "Reopen Task", saw a preview with the correct language. Reviewers: chad, btrahan Reviewed By: chad CC: aran Differential Revision: https://secure.phabricator.com/D8094
This commit is contained in:
parent
ffed36fd99
commit
d504a4d7df
1 changed files with 5 additions and 0 deletions
|
@ -95,6 +95,11 @@ final class ManiphestTransactionPreviewController extends ManiphestController {
|
||||||
$transaction->setOldValue($task->getProjectPHIDs());
|
$transaction->setOldValue($task->getProjectPHIDs());
|
||||||
$transaction->setNewValue($value);
|
$transaction->setNewValue($value);
|
||||||
break;
|
break;
|
||||||
|
case ManiphestTransaction::TYPE_STATUS:
|
||||||
|
$phids = array();
|
||||||
|
$transaction->setOldvalue($task->getStatus());
|
||||||
|
$transaction->setNewValue($value);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
$phids = array();
|
$phids = array();
|
||||||
$transaction->setNewValue($value);
|
$transaction->setNewValue($value);
|
||||||
|
|
Loading…
Reference in a new issue