Fix modifica causale movimento

This commit is contained in:
valentina 2024-06-27 10:20:36 +02:00
parent 013759b191
commit 77ff69e795
1 changed files with 1 additions and 1 deletions

View File

@ -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);