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:
@@ -95,6 +95,11 @@ final class ManiphestTransactionPreviewController extends ManiphestController {
|
||||
$transaction->setOldValue($task->getProjectPHIDs());
|
||||
$transaction->setNewValue($value);
|
||||
break;
|
||||
case ManiphestTransaction::TYPE_STATUS:
|
||||
$phids = array();
|
||||
$transaction->setOldvalue($task->getStatus());
|
||||
$transaction->setNewValue($value);
|
||||
break;
|
||||
default:
|
||||
$phids = array();
|
||||
$transaction->setNewValue($value);
|
||||
|
||||
Reference in New Issue
Block a user