mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
T5423, "is newly created" herald rule fails on dry runs
Summary: Fixes T5423, "is newly created" herald rule fails on dry runs Test Plan: Create herald "is newly created" rule, and do a dry run on an existing pholio mock, differential commit, or maniphest task. Should not return an exception. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T5423 Differential Revision: https://secure.phabricator.com/D10187
This commit is contained in:
parent
c6998207ab
commit
7204f9fec2
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,8 @@ final class HeraldTestConsoleController extends HeraldController {
|
|||
throw new Exception('Can not build adapter for object!');
|
||||
}
|
||||
|
||||
$adapter->setIsNewObject(false);
|
||||
|
||||
$rules = id(new HeraldRuleQuery())
|
||||
->setViewer($user)
|
||||
->withContentTypes(array($adapter->getAdapterContentType()))
|
||||
|
|
Loading…
Reference in a new issue