diff --git a/src/applications/audit/query/PhabricatorAuditCommitQuery.php b/src/applications/audit/query/PhabricatorAuditCommitQuery.php index ef50d4aa01..3d18cfd98b 100644 --- a/src/applications/audit/query/PhabricatorAuditCommitQuery.php +++ b/src/applications/audit/query/PhabricatorAuditCommitQuery.php @@ -181,13 +181,13 @@ final class PhabricatorAuditCommitQuery { case self::STATUS_CONCERN: $where[] = qsprintf( $conn_r, - 'c.auditStatus = %s', + 'c.auditStatus = %d', PhabricatorAuditCommitStatusConstants::CONCERN_RAISED); break; case self::STATUS_OPEN: $where[] = qsprintf( $conn_r, - 'c.auditStatus IN (%Ls)', + 'c.auditStatus IN (%Ld)', PhabricatorAuditCommitStatusConstants::getOpenStatusConstants()); break; case self::STATUS_ANY: diff --git a/src/applications/directory/controller/PhabricatorDirectoryMainController.php b/src/applications/directory/controller/PhabricatorDirectoryMainController.php index 15a4f24e41..9e5fab475b 100644 --- a/src/applications/directory/controller/PhabricatorDirectoryMainController.php +++ b/src/applications/directory/controller/PhabricatorDirectoryMainController.php @@ -409,7 +409,7 @@ final class PhabricatorDirectoryMainController $query = new PhabricatorAuditCommitQuery(); $query->withAuthorPHIDs($phids); - $query->withStatus(PhabricatorAuditQuery::STATUS_OPEN); + $query->withStatus(PhabricatorAuditCommitQuery::STATUS_CONCERN); $query->needCommitData(true); $query->setLimit(10); diff --git a/src/applications/owners/controller/PhabricatorOwnersDetailController.php b/src/applications/owners/controller/PhabricatorOwnersDetailController.php index eae6ac2050..720f8646c8 100644 --- a/src/applications/owners/controller/PhabricatorOwnersDetailController.php +++ b/src/applications/owners/controller/PhabricatorOwnersDetailController.php @@ -142,7 +142,7 @@ final class PhabricatorOwnersDetailController $attention_query = id(new PhabricatorAuditCommitQuery()) ->withPackagePHIDs(array($package->getPHID())) - ->withStatus(PhabricatorAuditCommitQuery::STATUS_OPEN) + ->withStatus(PhabricatorAuditCommitQuery::STATUS_CONCERN) ->needCommitData(true) ->needAudits(true) ->setLimit(10);