From 8227b32fdabb58e91d1fe155769f4fab811872d8 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Fri, 23 Feb 2024 16:22:17 +0100 Subject: [PATCH] Fix impostazione segmento predefinito limitata ai sezionali --- modules/segmenti/add.php | 15 ++++----------- modules/segmenti/edit.php | 2 +- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/modules/segmenti/add.php b/modules/segmenti/add.php index b6a501ebc..bed9c3621 100755 --- a/modules/segmenti/add.php +++ b/modules/segmenti/add.php @@ -28,25 +28,18 @@ include_once __DIR__.'/../../core.php'; {[ "type": "text", "label": "", "name": "name", "required": 1, "value": "$name$" ]} -
+
{[ "type": "text", "label": "", "name": "pattern", "class": "alphanumeric-mask", "value": "$pattern$", "maxlength": 25, "placeholder":"####/YYYY" ]}
- -
- {[ "type": "checkbox", "label": "", "help": "", "name": "is_sezionale", "value": "$is_sezionale$" ]} -
- +
+ {[ "type": "checkbox", "label": "", "help": "", "name": "is_sezionale", "value": "$is_sezionale$" ]} +
{[ "type": "select", "label": "", "name": "module", "required": 1, "values": "query=SELECT id, IF(title!='', title, name) AS descrizione FROM zz_modules WHERE enabled = 1 AND options != 'custom' ORDER BY descrizione ASC", "value": "" ]}
- -
- {[ "type": "checkbox", "label": "", "name": "predefined", "value": "0", "help": "", "placeholder": "" ]} -
-
diff --git a/modules/segmenti/edit.php b/modules/segmenti/edit.php index 2914948ad..cea89b45b 100755 --- a/modules/segmenti/edit.php +++ b/modules/segmenti/edit.php @@ -42,7 +42,7 @@ include_once __DIR__.'/../../core.php';
- {[ "type": "checkbox", "label": "", "name": "predefined", "value": "$predefined$", "help": "", "placeholder": "", "extra": "" ]} + {[ "type": "checkbox", "label": "", "name": "predefined", "value": "$predefined$", "help": "", "placeholder": "", "extra": "" ]}