Rimossa obbligatorietà categorie negli articoli

This commit is contained in:
loviuz 2020-02-14 11:35:15 +01:00
parent f46f738a61
commit a85acca3ea
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ unset($_SESSION['superselect']['id_categoria']);
</div>
<div class="col-md-6">
{[ "type": "select", "label": "<?php echo tr('Inserisci la categoria:'); ?>", "name": "categoria", "required": 1, "ajax-source": "categorie", "icon-after": "add|<?php echo Modules::get('Categorie articoli')['id']; ?>" ]}
{[ "type": "select", "label": "<?php echo tr('Inserisci la categoria:'); ?>", "name": "categoria", "required": 0, "ajax-source": "categorie", "icon-after": "add|<?php echo Modules::get('Categorie articoli')['id']; ?>" ]}
</div>
<div class="col-md-6">

View File

@ -33,7 +33,7 @@ $_SESSION['superselect']['id_categoria'] = $record['id_categoria'];
<div class="row">
<div class="col-md-6">
{[ "type": "select", "label": "<?php echo tr('Categoria'); ?>", "name": "categoria", "required": 1, "value": "$id_categoria$", "ajax-source": "categorie" ]}
{[ "type": "select", "label": "<?php echo tr('Categoria'); ?>", "name": "categoria", "required": 0, "value": "$id_categoria$", "ajax-source": "categorie" ]}
</div>
<div class="col-md-6">