Merge pull request #777 from harshanL/master

Fixed wso2/product-iots#473
revert-70aa11f8
inoshperera 7 years ago committed by GitHub
commit d63ef44e7b

@ -190,7 +190,7 @@ public class PolicyManagerImpl implements PolicyManager {
policy.setProfileId(profileId); policy.setProfileId(profileId);
Timestamp currentTimestamp = new Timestamp(Calendar.getInstance().getTime().getTime()); Timestamp currentTimestamp = new Timestamp(Calendar.getInstance().getTime().getTime());
policy.getProfile().setUpdatedDate(currentTimestamp); policy.getProfile().setUpdatedDate(currentTimestamp);
policy.setPriorityId(previousPolicy.getPriorityId());
policyDAO.updatePolicy(policy); policyDAO.updatePolicy(policy);
profileDAO.updateProfile(policy.getProfile()); profileDAO.updateProfile(policy.getProfile());

Loading…
Cancel
Save