Skip to content

Commit dee7fc6

Browse files
committed
fix: aggiunta categoria file
1 parent 710308e commit dee7fc6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

modules/categorie_files/actions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
break;
4242

4343
case 'add':
44-
$name = post('name');
44+
$name = post('name_add');
4545
$categoria_new = Categoria::where('name', '=', $name)->where('deleted_at', '=', null)->first();
4646

4747
if (!empty($categoria_new)) {

modules/categorie_files/add.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<div class="row">
2727
<div class="col-md-12">
28-
{[ "type": "text", "label": "<?php echo tr('Descrizione'); ?>", "name": "name", "required": 1, "value": "", "extra": "" ]}
28+
{[ "type": "text", "label": "<?php echo tr('Descrizione'); ?>", "name": "name_add", "required": 1, "value": "", "extra": "" ]}
2929
</div>
3030
</div>
3131

0 commit comments

Comments
 (0)