diff options
author | Christian Hofmaier | 2019-01-08 14:50:50 +0100 |
---|---|---|
committer | Christian Hofmaier | 2019-01-08 14:50:50 +0100 |
commit | ccd6ea5a851c5e3f46c10b06b32f852c36ec4dd1 (patch) | |
tree | c0b32df25afabb85d2516adb8a484bcedc6cc5d0 /modules-available | |
parent | [locationinfo] make colors consistent for summary and default panel (diff) | |
download | slx-admin-ccd6ea5a851c5e3f46c10b06b32f852c36ec4dd1.tar.gz slx-admin-ccd6ea5a851c5e3f46c10b06b32f852c36ec4dd1.tar.xz slx-admin-ccd6ea5a851c5e3f46c10b06b32f852c36ec4dd1.zip |
[locationinfo] set roomplanner default on false for existing panels
- if panel is already existing without roomplanner value in database
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/locationinfo/inc/infopanel.inc.php | 3 | ||||
-rw-r--r-- | modules-available/locationinfo/page.inc.php | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/modules-available/locationinfo/inc/infopanel.inc.php b/modules-available/locationinfo/inc/infopanel.inc.php index 918030f0..fdc253f0 100644 --- a/modules-available/locationinfo/inc/infopanel.inc.php +++ b/modules-available/locationinfo/inc/infopanel.inc.php @@ -37,6 +37,9 @@ class InfoPanel $overrides = $json['overrides']; } unset($json['overrides']); + if (!isset($json['roomplanner'])) { + $config['roomplanner'] = false; + } $config = $json + $config; } } diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php index 13382438..8ea18940 100644 --- a/modules-available/locationinfo/page.inc.php +++ b/modules-available/locationinfo/page.inc.php @@ -902,6 +902,9 @@ class Page_LocationInfo extends Page } $config = json_decode($panel['panelconfig'], true); + if (!isset($config['roomplanner'])) { + $config['roomplanner'] = false; + } } // Permission |