Skip to content

Commit 4afe827

Browse files
committed
fix: avviso aggiunta seriali
1 parent d5449e7 commit 4afe827

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

modules/articoli/actions.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,12 @@
363363
]), date('Y-m-d'));
364364
}
365365

366-
flash()->info(tr('Aggiunti _NUM_ seriali!', [
367-
'_NUM_' => $count,
368-
]));
369-
370-
if ($count != $totale) {
371-
flash()->warning(tr('Alcuni seriali erano già presenti').'...');
366+
if ($count > 0) {
367+
flash()->info(tr('Aggiunti _NUM_ seriali!', [
368+
'_NUM_' => $count,
369+
]));
370+
} else {
371+
flash()->warning(tr('Nessun seriale è stato aggiunto. Verifica che i seriali inseriti non esistano già.'));
372372
}
373373

374374
break;

0 commit comments

Comments
 (0)