diff --git a/modules/interventi/actions.php b/modules/interventi/actions.php index a508c5f15..d504d4520 100644 --- a/modules/interventi/actions.php +++ b/modules/interventi/actions.php @@ -277,7 +277,7 @@ switch (post('op')) { //Riporto anche i permessi della check $users = []; - $utenti = $dbo->table('zz_check_user')->where('id_check',$check_categoria['id'])->get(); + $utenti = $dbo->table('zz_check_user')->where('id_check',$check_impianto['id'])->get(); foreach($utenti as $utente){ $users[] = $utente->id_utente; } diff --git a/plugins/impianti_intervento/actions.php b/plugins/impianti_intervento/actions.php index a9f7e0711..73c55ccc5 100644 --- a/plugins/impianti_intervento/actions.php +++ b/plugins/impianti_intervento/actions.php @@ -46,7 +46,7 @@ switch ($operazione) { //Riporto anche i permessi della check $users = []; - $utenti = $dbo->table('zz_check_user')->where('id_check',$check_categoria['id'])->get(); + $utenti = $dbo->table('zz_check_user')->where('id_check',$check_impianto['id'])->get(); foreach($utenti as $utente){ $users[] = $utente->id_utente; }