mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge pull request #777 from harshanL/master
Fixed wso2/product-iots#473
This commit is contained in:
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…
Reference in New Issue
Block a user