mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-09 14:21:02 +01:00
Load audit requests when querying audits
Summary: Fixes T9434. I'm not sure exactly what changed behavior here, but we need a `needAuditRequests()`. Test Plan: Ran a query which hit the exception (empty query was good enough, locally), then applied this patch; saw exception go away. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9434 Differential Revision: https://secure.phabricator.com/D14162
This commit is contained in:
parent
36d9908e6c
commit
bd546f44a9
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,8 @@ final class AuditQueryConduitAPIMethod extends AuditConduitAPIMethod {
|
||||||
protected function execute(ConduitAPIRequest $request) {
|
protected function execute(ConduitAPIRequest $request) {
|
||||||
|
|
||||||
$query = id(new DiffusionCommitQuery())
|
$query = id(new DiffusionCommitQuery())
|
||||||
->setViewer($request->getUser());
|
->setViewer($request->getUser())
|
||||||
|
->needAuditRequests(true);
|
||||||
|
|
||||||
$auditor_phids = $request->getValue('auditorPHIDs', array());
|
$auditor_phids = $request->getValue('auditorPHIDs', array());
|
||||||
if ($auditor_phids) {
|
if ($auditor_phids) {
|
||||||
|
|
Loading…
Reference in a new issue