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

This commit is contained in:
Alena Prokharchyk 2013-08-02 09:01:27 -07:00
parent 80e2934bb7
commit 4e53ce0677
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ public class ProjectJoinDaoImpl extends GenericDaoBase<ProjectJoinVO, Long> 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);