From 88cfa3d4edbb721d8d0e3631eaf6739e17fb5bf3 Mon Sep 17 00:00:00 2001 From: Beppe Date: Mon, 11 Apr 2022 12:44:42 +0200 Subject: [PATCH] Fix bulk cambio stato intervento --- modules/interventi/bulk.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/interventi/bulk.php b/modules/interventi/bulk.php index 2d6c0e4c0..ca1b6b89a 100755 --- a/modules/interventi/bulk.php +++ b/modules/interventi/bulk.php @@ -151,12 +151,10 @@ switch (post('op')) { foreach ($id_records as $id) { $intervento = Intervento::find($id); - if (!$intervento->stato->is_completato || ($intervento->stato->is_completato == $stato->is_completato)) { - $intervento->stato()->associate($stato); - $intervento->save(); + $intervento->stato()->associate($stato); + $intervento->save(); - ++$n_interventi; - } + ++$n_interventi; } if ($n_interventi > 0) {