Fixing the DAO layer acess to maintain the consistancy on implimentation

4.x.x
kamidu 7 years ago
parent 6daf95b78d
commit 09f395660a

@ -898,7 +898,7 @@ public class PolicyManagerImpl implements PolicyManager {
if (policyConfiguration.getCacheEnable()) { if (policyConfiguration.getCacheEnable()) {
allPolicies = PolicyCacheManagerImpl.getInstance().getAllPolicies(); allPolicies = PolicyCacheManagerImpl.getInstance().getAllPolicies();
} else { } else {
allPolicies = policyDAO.getAllPolicies(); allPolicies = this.getPolicies();
} }
for (Policy policy : allPolicies) { for (Policy policy : allPolicies) {
if (policy.isUpdated()) { if (policy.isUpdated()) {

Loading…
Cancel
Save