Fix aggiunta combinazione

This commit is contained in:
valentina 2024-06-27 10:18:10 +02:00
parent 2ebdc1a430
commit 013759b191
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ switch (filter('op')) {
$nome = post('nome');
// Ricerca combinazione con nome indicato
$combinazione_new = Combinazione::where('id', '=', (new Combinazione())->getByField('title', $nome)->where('id', '!=', $id_record)->first());
$combinazione_new = Combinazione::where('id', '=', (new Combinazione())->getByField('title', $nome))->where('id', '!=', $id_record)->first();
if (!empty($combinazione_new)) {
flash()->error(tr('Questo nome è già stato utilizzato per un altra combinazione.'));