From 52db24f6320270c8493bbb3330ad04c53a791ae3 Mon Sep 17 00:00:00 2001 From: Christian Hofmaier Date: Tue, 4 Jun 2019 14:04:59 +0200 Subject: [locationinfo] fix bug override not loading correctly into edit menu --- modules-available/locationinfo/templates/page-config-panel-default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules-available/locationinfo/templates/page-config-panel-default.html b/modules-available/locationinfo/templates/page-config-panel-default.html index f6e688fa..43a7db44 100644 --- a/modules-available/locationinfo/templates/page-config-panel-default.html +++ b/modules-available/locationinfo/templates/page-config-panel-default.html @@ -511,7 +511,7 @@ document.addEventListener("DOMContentLoaded", function () { var scale = $('#override' + id + 'scale'); if (overrides !== null && overrides[id] !== undefined) { $('#override' + id + 'mode').val(overrides[id].mode); - $('#override' + id + 'roomplanner').val(overrides[id].roomplanner); + $('#override' + id + 'roomplanner').val(overrides[id].roomplanner ? 1 : 0); if (overrides[id].vertical) $('#override' + id + 'vertical').bootstrapSwitch('state', true); if (overrides[id].scaledaysauto) $('#override' + id + 'scaledaysauto').bootstrapSwitch('state', true); $('#override' + id + 'daystoshow').val(overrides[id].daystoshow); -- cgit v1.2.3-55-g7522