|
|
|
@ -274,7 +274,9 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
|
|
|
|
|
Device currentDevice = deviceDAO.getDevice(deviceIdentifier, tenantId);
|
|
|
|
|
device.setId(currentDevice.getId());
|
|
|
|
|
device.getEnrolmentInfo().setId(currentDevice.getEnrolmentInfo().getId());
|
|
|
|
|
if (device.getName() == null) {
|
|
|
|
|
device.setName(currentDevice.getName());
|
|
|
|
|
}
|
|
|
|
|
deviceDAO.updateDevice(device, tenantId);
|
|
|
|
|
enrollmentDAO.updateEnrollment(device.getEnrolmentInfo());
|
|
|
|
|
DeviceManagementDAOFactory.commitTransaction();
|
|
|
|
|