From c78ab0bef60914b179cbe088b0f1e12ecaa70cf5 Mon Sep 17 00:00:00 2001 From: Christian Hofmaier Date: Thu, 28 Mar 2019 13:12:35 +0100 Subject: [locationinfo] fix overrides reference is null error - the switch for activating override for a room is now working correctly --- modules-available/locationinfo/templates/page-config-panel-default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/locationinfo/templates/page-config-panel-default.html') 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() { -- cgit v1.2.3-55-g7522