From 77ff69e7955046f50c4b24a0a40a41c40bebd25c Mon Sep 17 00:00:00 2001 From: valentina Date: Thu, 27 Jun 2024 10:20:36 +0200 Subject: [PATCH] Fix modifica causale movimento --- modules/causali_movimenti/actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/causali_movimenti/actions.php b/modules/causali_movimenti/actions.php index 051c99a8f..ab2314a24 100755 --- a/modules/causali_movimenti/actions.php +++ b/modules/causali_movimenti/actions.php @@ -26,7 +26,7 @@ switch (filter('op')) { $nome = post('nome'); $descrizione = post('descrizione'); if (isset($descrizione)) { - $causale_new = Causale::where('id', '=', (new Causale())->getByField('title', $nome))->orWhere('name', $nome)->where('id', '!=', $id_record)->first(); + $causale_new = Causale::where('id', '=', (new Causale())->getByField('title', $nome))->where('id', '!=', $id_record)->first(); if (empty($causale_new)) { $causale->tipo_movimento = post('tipo_movimento'); $causale->setTranslation('title', $nome);