diff options
Diffstat (limited to 'modules-available/locationinfo')
-rw-r--r-- | modules-available/locationinfo/inc/locationinfo.inc.php | 1 | ||||
-rw-r--r-- | modules-available/locationinfo/templates/page-config-panel-default.html | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/locationinfo/inc/locationinfo.inc.php b/modules-available/locationinfo/inc/locationinfo.inc.php index 47872481..23a20a94 100644 --- a/modules-available/locationinfo/inc/locationinfo.inc.php +++ b/modules-available/locationinfo/inc/locationinfo.inc.php @@ -104,6 +104,7 @@ class LocationInfo 'calupdate' => 30, 'roomupdate' => 15, 'configupdate' => 180, + 'overrides' => [], ); } if ($type === 'SUMMARY') { 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() { |