diff --git a/include/common/articolo.php b/include/common/articolo.php
index b8a07b31f..5fe43ad0c 100644
--- a/include/common/articolo.php
+++ b/include/common/articolo.php
@@ -11,7 +11,7 @@ if (!isset($options['edit_articolo']) || !empty($options['edit_articolo'])) {
echo '
- {[ "type": "select", "label": "'.tr('Articolo').'", "name": "idarticolo", "required": 1, "value": "'.$result['idarticolo'].'", "ajax-source": "articoli" ]}
+ {[ "type": "select", "label": "'.tr('Articolo').'", "name": "idarticolo", "required": 1, "value": "'.$result['idarticolo'].'", "ajax-source": "articoli", "icon-after": "add|'.Modules::get('Articoli')['id'].'||'.(($options['dir']=='uscita') ? '' : 'disabled').'" ]}
';
} else {
diff --git a/modules/articoli/actions.php b/modules/articoli/actions.php
index de0a5e4f2..043de6480 100644
--- a/modules/articoli/actions.php
+++ b/modules/articoli/actions.php
@@ -21,6 +21,10 @@ switch (post('op')) {
]);
$id_record = $dbo->lastInsertedID();
+ if (isAjaxRequest()) {
+ echo json_encode(['id' => $id_record, 'text' => post('descrizione')]);
+ }
+
flash()->info(tr('Aggiunto un nuovo articolo'));
break;