Fix cleanup righe interventi per applicazione

This commit is contained in:
Matteo 2021-02-26 10:36:21 +01:00 committed by GitHub
parent ec67ce259c
commit e23c712fa5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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