Skip to content

Commit 4691440

Browse files
committed
fix: add categorie
1 parent 4971425 commit 4691440

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

modules/categorie/actions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@
8888
break;
8989

9090
case 'add':
91-
$nome = filter('nome');
92-
$nota = filter('nota');
93-
$colore = filter('colore');
91+
$nome = filter('nome_add');
92+
$nota = filter('nota_add');
93+
$colore = filter('colore_add');
9494
$id_original = filter('id_original') ?: null;
9595
$is_articolo = (filter('is_articolo_add') ?: filter('is_articolo')) ?: 0;
9696
$is_impianto = (filter('is_impianto_add') ?: filter('is_impianto')) ?: 0;

modules/categorie/add.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545

4646
<div class="row">
4747
<div class="col-md-5">
48-
{[ "type": "text", "label": "<?php echo tr('Nome'); ?>", "name": "nome", "required": 1, "value": "$title$" ]}
48+
{[ "type": "text", "label": "<?php echo tr('Nome'); ?>", "name": "nome_add", "required": 1, "value": "$title$" ]}
4949
</div>
5050

5151
<div class="col-md-3">
52-
{[ "type": "text", "label": "<?php echo tr('Colore'); ?>", "name": "colore", "id": "colore_", "class": "colorpicker text-center", "value": "<?php echo $categoria->colore; ?>", "extra": "maxlength=\"7\"", "icon-after": "<div class='img-circle square'></div>" ]}
52+
{[ "type": "text", "label": "<?php echo tr('Colore'); ?>", "name": "colore_add", "id": "colore_", "class": "colorpicker text-center", "value": "<?php echo $categoria->colore; ?>", "extra": "maxlength=\"7\"", "icon-after": "<div class='img-circle square'></div>" ]}
5353
</div>
5454

5555
<div class="col-md-2">
@@ -63,7 +63,7 @@
6363

6464
<div class="row">
6565
<div class="col-md-12">
66-
{[ "type": "textarea", "label": "<?php echo tr('Nota'); ?>", "name": "nota", "value": "<?php echo $categoria ? $categoria->getTranslation('note') : ''; ?>", "rows": "3" ]}
66+
{[ "type": "textarea", "label": "<?php echo tr('Nota'); ?>", "name": "nota_add", "value": "<?php echo $categoria ? $categoria->getTranslation('note') : ''; ?>", "rows": "3" ]}
6767
</div>
6868
</div>
6969

0 commit comments

Comments
 (0)