From 47a82c93a693771de7639f4dfe57114370408bf7 Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 8 May 2020 18:37:45 +0200 Subject: [PATCH] Update Sessioni.php --- modules/interventi/src/API/v1/Sessioni.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/interventi/src/API/v1/Sessioni.php b/modules/interventi/src/API/v1/Sessioni.php index f1ec54025..87fa75a75 100755 --- a/modules/interventi/src/API/v1/Sessioni.php +++ b/modules/interventi/src/API/v1/Sessioni.php @@ -13,7 +13,7 @@ class Sessioni extends Resource implements RetrieveInterface, CreateInterface, D { $user = $this->getUser(); - $query = 'SELECT id, idtecnico AS id_tecnico, idintervento AS id_intervento, orario_inizio, orario_fine FROM in_interventi_tecnici WHERE `idintervento` = :id_intervento'; + $query = 'SELECT id, idtecnico AS id_tecnico, idintervento AS id_intervento, orario_inizio, orario_fine, ragione_sociale AS tecnico FROM in_interventi_tecnici INNER JOIN an_anagrafiche ON idanagrafica = idtecnico WHERE `idintervento` = :id_intervento'; $parameters = [ ':id_intervento' => $request['id_intervento'],