mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge pull request #669 from lakshani/reenrollment-device
Fixed jira IOTS-438
This commit is contained in:
commit
52455b4c40
@ -269,7 +269,9 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|||||||
DeviceManagementDAOFactory.beginTransaction();
|
DeviceManagementDAOFactory.beginTransaction();
|
||||||
Device currentDevice = deviceDAO.getDevice(deviceIdentifier, tenantId);
|
Device currentDevice = deviceDAO.getDevice(deviceIdentifier, tenantId);
|
||||||
device.setId(currentDevice.getId());
|
device.setId(currentDevice.getId());
|
||||||
device.getEnrolmentInfo().setId(currentDevice.getEnrolmentInfo().getId());
|
if (device.getEnrolmentInfo().getId() == 0) {
|
||||||
|
device.getEnrolmentInfo().setId(currentDevice.getEnrolmentInfo().getId());
|
||||||
|
}
|
||||||
if (device.getName() == null) {
|
if (device.getName() == null) {
|
||||||
device.setName(currentDevice.getName());
|
device.setName(currentDevice.getName());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user