mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'master' of https://github.com/wso2/carbon-device-mgt
This commit is contained in:
commit
d8e40fb8d6
@ -145,7 +145,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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user