merge-requests/7/head
hasuniea 9 years ago
commit d8e40fb8d6

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

Loading…
Cancel
Save