From b47e7261d74a67241f73de05191d130825573975 Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 6 Dec 2023 05:36:19 +0000 Subject: [PATCH] Set pota option at LBA if not set --- application/views/logbookadvanced/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/views/logbookadvanced/index.php b/application/views/logbookadvanced/index.php index 70376bd7..c2a3bd0b 100644 --- a/application/views/logbookadvanced/index.php +++ b/application/views/logbookadvanced/index.php @@ -10,6 +10,10 @@ if (!isset($options)) { $options = "{\"datetime\":{\"show\":\"true\"},\"de\":{\"show\":\"true\"},\"dx\":{\"show\":\"true\"},\"mode\":{\"show\":\"true\"},\"rstr\":{\"show\":\"true\"},\"rsts\":{\"show\":\"true\"},\"band\":{\"show\":\"true\"},\"myrefs\":{\"show\":\"true\"},\"refs\":{\"show\":\"true\"},\"name\":{\"show\":\"true\"},\"qslvia\":{\"show\":\"true\"},\"qsl\":{\"show\":\"true\"},\"lotw\":{\"show\":\"true\"},\"eqsl\":{\"show\":\"true\"},\"qslmsg\":{\"show\":\"true\"},\"dxcc\":{\"show\":\"true\"},\"state\":{\"show\":\"true\"},\"cqzone\":{\"show\":\"true\"},\"iota\":{\"show\":\"true\"},\"pota\":{\"show\":\"true\"},\"operator\":{\"show\":\"true\"}}"; } echo "var user_options = $options;"; +if (!isset($options->pota)) { + echo "\nvar o_template = { pota: {show: 'true'}};"; + echo "\nuser_options={...user_options, ...o_template}"; +} if (!isset($options->operator)) { echo "\nvar o_template = { operator: {show: 'true'}};"; echo "\nuser_options={...user_options, ...o_template}";