Merge branch 'delete-fix' into 'master'

Fix delete

See merge request entgra/carbon-device-mgt!300
This commit is contained in:
Dharmakeerthi Lasantha 2019-10-10 03:11:23 +00:00
commit 90fd12d876
2 changed files with 5 additions and 0 deletions

View File

@ -605,6 +605,8 @@ public class DeviceManagementProviderServiceImpl implements DeviceManagementProv
"' devices";
log.error(msg, e);
throw new DeviceManagementException(msg, e);
} finally {
DeviceManagementDAOFactory.closeConnection();
}
}

View File

@ -932,6 +932,9 @@ function attachDeviceEvents() {
}
}
$(modalPopupContent).html($('#delete-device-modal-content').html());
showPopup();
$("a#delete-device-yes-link").click(function () {
deleteDevices(deviceIdentifiers);
});