From 09f395660adf70c72a9de3394ee0458e4aa1cee5 Mon Sep 17 00:00:00 2001 From: kamidu Date: Thu, 4 Jan 2018 12:38:17 +0530 Subject: [PATCH] Fixing the DAO layer acess to maintain the consistancy on implimentation --- .../wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImpl.java b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImpl.java index 7f4f48415fb..a656b66ea85 100644 --- a/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImpl.java +++ b/components/policy-mgt/org.wso2.carbon.policy.mgt.core/src/main/java/org/wso2/carbon/policy/mgt/core/mgt/impl/PolicyManagerImpl.java @@ -898,7 +898,7 @@ public class PolicyManagerImpl implements PolicyManager { if (policyConfiguration.getCacheEnable()) { allPolicies = PolicyCacheManagerImpl.getInstance().getAllPolicies(); } else { - allPolicies = policyDAO.getAllPolicies(); + allPolicies = this.getPolicies(); } for (Policy policy : allPolicies) { if (policy.isUpdated()) {