From 4e53ce067722f4ef9e091455243459e8b151164b Mon Sep 17 00:00:00 2001 From: Alena Prokharchyk Date: Fri, 2 Aug 2013 09:01:27 -0700 Subject: [PATCH] CLOUDSTACK-4022: listProjects - do searchIncludingRemoved when getting info of corresponding projectAccount because when the project is being removed, its account is marked as Removed first, but we might still want to retrieve its info --- server/src/com/cloud/api/query/dao/ProjectJoinDaoImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/api/query/dao/ProjectJoinDaoImpl.java b/server/src/com/cloud/api/query/dao/ProjectJoinDaoImpl.java index 6c98f8c95d1..616f256db3a 100644 --- a/server/src/com/cloud/api/query/dao/ProjectJoinDaoImpl.java +++ b/server/src/com/cloud/api/query/dao/ProjectJoinDaoImpl.java @@ -91,7 +91,7 @@ public class ProjectJoinDaoImpl extends GenericDaoBase impl } //set resource limit/count information for the project (by getting the info of the project's account) - Account account = _accountDao.findById(proj.getProjectAccountId()); + Account account = _accountDao.findByIdIncludingRemoved(proj.getProjectAccountId()); AccountJoinVO accountJn = ApiDBUtils.newAccountView(account); _accountJoinDao.setResourceLimits(accountJn, false, response);