Fixed EMM-910

This commit is contained in:
harshanl 2015-11-03 18:58:52 +05:30
parent b7edc80c0e
commit 74a3b0e346

View File

@ -144,7 +144,9 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
this.modifyEnrollment(device);
status = true;
} else {
this.setStatus(deviceIdentifier, existingEnrolmentInfo.getOwner(), EnrolmentInfo.Status.INACTIVE);
if (!EnrolmentInfo.Status.REMOVED.equals(existingEnrolmentInfo.getStatus())) {
this.setStatus(deviceIdentifier, existingEnrolmentInfo.getOwner(), EnrolmentInfo.Status.INACTIVE);
}
int enrolmentId;
try {
DeviceManagementDAOFactory.beginTransaction();