1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-01-10 14:44:04 +01:00

Fix modifica causale movimento

This commit is contained in:
valentina 2024-06-27 10:20:36 +02:00
parent 013759b191
commit 77ff69e795

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