diff options
author | Christian Hofmaier | 2019-03-28 13:12:35 +0100 |
---|---|---|
committer | Christian Hofmaier | 2019-03-28 13:12:35 +0100 |
commit | c78ab0bef60914b179cbe088b0f1e12ecaa70cf5 (patch) | |
tree | d70f6071de3f8f8991f1b261ed1efd9c025d6a44 /modules-available/locationinfo/templates | |
parent | [serversetup-bwlp-ipxe] Escape model names for form field names (diff) | |
download | slx-admin-c78ab0bef60914b179cbe088b0f1e12ecaa70cf5.tar.gz slx-admin-c78ab0bef60914b179cbe088b0f1e12ecaa70cf5.tar.xz slx-admin-c78ab0bef60914b179cbe088b0f1e12ecaa70cf5.zip |
[locationinfo] fix overrides reference is null error
- the switch for activating override for a room is now working correctly
Diffstat (limited to 'modules-available/locationinfo/templates')
-rw-r--r-- | modules-available/locationinfo/templates/page-config-panel-default.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/locationinfo/templates/page-config-panel-default.html b/modules-available/locationinfo/templates/page-config-panel-default.html index 9470efbb..2514ef93 100644 --- a/modules-available/locationinfo/templates/page-config-panel-default.html +++ b/modules-available/locationinfo/templates/page-config-panel-default.html @@ -549,7 +549,7 @@ document.addEventListener("DOMContentLoaded", function () { function unloadOverrideContent(id) { var $panelBody = $('#overrideRoom' + id).find('div.panel-body'); $panelBody.find('div.list-group').remove(); - delete overrides[id] + if (overrides !== null && overrides[id] !== undefined) delete overrides[id] } function delParent() { |