Fixed regression bug in listNetworks call (introduced during Project feature implementation)

This commit is contained in:
alena 2011-10-10 10:51:21 -07:00
parent eba6864965
commit 43bebcd050
1 changed files with 1 additions and 1 deletions

View File

@ -2008,7 +2008,7 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
//account level networks
SearchCriteria<NetworkVO> accountSC = _networksDao.createSearchCriteria();
if (!permittedAccounts.isEmpty()) {
accountSC.addAnd("accountId", SearchCriteria.Op.IN, permittedAccounts);
accountSC.addAnd("accountId", SearchCriteria.Op.IN, permittedAccounts.toArray());
}
accountSC.addAnd("isShared", SearchCriteria.Op.EQ, false);