mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-28 16:30:59 +01:00
Improve exception when creating a cyclic dependency in Maniphest
Summary: Fixes T6815. This was overlooked in D9838. This could be prettier, but does the job. Test Plan: {F327790} Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T6815 Differential Revision: https://secure.phabricator.com/D11937
This commit is contained in:
parent
e5e3eb357f
commit
e651169879
1 changed files with 8 additions and 3 deletions
|
@ -84,9 +84,14 @@ final class PhabricatorSearchAttachController
|
|||
'+' => array_fuse($add_phids),
|
||||
'-' => array_fuse($rem_phids),
|
||||
));
|
||||
$txn_editor->applyTransactions(
|
||||
$object->getApplicationTransactionObject(),
|
||||
array($txn_template));
|
||||
|
||||
try {
|
||||
$txn_editor->applyTransactions(
|
||||
$object->getApplicationTransactionObject(),
|
||||
array($txn_template));
|
||||
} catch (PhabricatorEdgeCycleException $ex) {
|
||||
$this->raiseGraphCycleException($ex);
|
||||
}
|
||||
|
||||
return id(new AphrontReloadResponse())->setURI($handle->getURI());
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue