Fix variables.php

This commit is contained in:
MatteoPistorello 2022-03-21 12:47:17 +01:00
parent c5eddb8979
commit fc6bc568c8
3 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ $r = $dbo->fetchOne('SELECT dt_ddt.*,
FROM dt_ddt
INNER JOIN an_anagrafiche ON dt_ddt.idanagrafica = an_anagrafiche.idanagrafica
LEFT OUTER JOIN an_referenti ON an_referenti.id = dt_ddt.idreferente
WHERE id='.prepare($id_record));
WHERE dt_ddt.id='.prepare($id_record));
// Variabili da sostituire
return [

View File

@ -25,7 +25,7 @@ $r = $dbo->fetchOne('SELECT *,
(SELECT descrizione FROM in_statiintervento WHERE idstatointervento=in_interventi.idstatointervento) AS stato
FROM in_interventi
INNER JOIN an_anagrafiche ON in_interventi.idanagrafica = an_anagrafiche.idanagrafica
WHERE id='.prepare($id_record));
WHERE in_interventi.id='.prepare($id_record));
// Variabili da sostituire
return [

View File

@ -23,7 +23,7 @@ $r = $dbo->fetchOne('SELECT or_ordini.*,
FROM or_ordini
INNER JOIN an_anagrafiche ON or_ordini.idanagrafica = an_anagrafiche.idanagrafica
LEFT OUTER JOIN an_referenti ON an_referenti.id = or_ordini.idreferente
WHERE id='.prepare($id_record));
WHERE or_ordini.id='.prepare($id_record));
// Variabili da sostituire
return [