mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix for the issue : EMM policy updating issue
This commit is contained in:
parent
836ed2bc1c
commit
2f852d84f4
@ -892,9 +892,9 @@ public class PolicyManagerImpl implements PolicyManager {
|
||||
|
||||
Policy policySaved = policyDAO.getAppliedPolicy(deviceId, device.getEnrolmentInfo().getId());
|
||||
if (policySaved != null && policySaved.getId() != 0) {
|
||||
if (policy.getId() != policySaved.getId()) {
|
||||
// if (policy.getId() != policySaved.getId()) {
|
||||
policyDAO.updateEffectivePolicyToDevice(deviceId, device.getEnrolmentInfo().getId(), policy);
|
||||
}
|
||||
// }
|
||||
} else {
|
||||
policyDAO.addEffectivePolicyToDevice(deviceId, device.getEnrolmentInfo().getId(), policy);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user