From e23c712fa5bb4065f75d33ad42cd0ce67170bee9 Mon Sep 17 00:00:00 2001 From: Matteo Date: Fri, 26 Feb 2021 10:36:21 +0100 Subject: [PATCH] Fix cleanup righe interventi per applicazione --- src/API/App/v1/RigheInterventi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/App/v1/RigheInterventi.php b/src/API/App/v1/RigheInterventi.php index e716a6283..a96d2972f 100644 --- a/src/API/App/v1/RigheInterventi.php +++ b/src/API/App/v1/RigheInterventi.php @@ -52,7 +52,7 @@ class RigheInterventi extends AppResource if (!empty($interventi)) { $query = 'SELECT in_righe_interventi.id FROM in_righe_interventi - INNER JOIN in_interventi ON in_interventi_tecnici.idintervento = in_interventi.id + INNER JOIN in_interventi ON in_righe_interventi.idintervento = in_interventi.id WHERE in_interventi.id IN ('.implode(',', $interventi).')'; $records = database()->fetchArray($query);