mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixed jira IOTS-438
This commit is contained in:
parent
0e5895ec78
commit
5c7cfda487
@ -269,7 +269,9 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
||||
DeviceManagementDAOFactory.beginTransaction();
|
||||
Device currentDevice = deviceDAO.getDevice(deviceIdentifier, tenantId);
|
||||
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) {
|
||||
device.setName(currentDevice.getName());
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user