Ignore projectid=-1 on Quota summary (#13658)

This commit is contained in:
Fabricio Duarte 2026-07-22 12:09:21 -03:00 committed by GitHub
parent 424f0dfdf5
commit 8148c532e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,6 +116,9 @@ public class QuotaSummaryCmd extends BaseListCmd {
}
public Long getProjectId() {
if (projectId == null || projectId == -1L) {
return null;
}
return projectId;
}
@ -129,9 +132,10 @@ public class QuotaSummaryCmd extends BaseListCmd {
@Override
public long getEntityOwnerId() {
if (ObjectUtils.allNull(accountId, accountName, projectId)) {
Long convertedProjectId = getProjectId();
if (ObjectUtils.allNull(accountId, accountName, convertedProjectId)) {
return -1;
}
return _accountService.finalizeAccountId(accountId, accountName, domainId, projectId);
return _accountService.finalizeAccountId(accountId, accountName, domainId, convertedProjectId);
}
}