From 3857be50b9e8c1e4a1c1ad7277af273e905bb074 Mon Sep 17 00:00:00 2001 From: Harshan Liyanage Date: Thu, 15 Jun 2017 11:58:22 +0530 Subject: [PATCH] Fixed wso2/product-iots#473 --- .../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 5307c5f29f..37a3e148fc 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 @@ -190,7 +190,7 @@ public class PolicyManagerImpl implements PolicyManager { policy.setProfileId(profileId); Timestamp currentTimestamp = new Timestamp(Calendar.getInstance().getTime().getTime()); policy.getProfile().setUpdatedDate(currentTimestamp); - + policy.setPriorityId(previousPolicy.getPriorityId()); policyDAO.updatePolicy(policy); profileDAO.updateProfile(policy.getProfile());