1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-03-06 04:07:50 +01:00
This commit is contained in:
MatteoPistorello 2021-04-23 13:02:05 +02:00
commit 9ef6ce31c7

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
$r = $dbo->fetchOne('SELECT *,
$r = $dbo->fetchOne('SELECT *, dt_ddt.idanagrafica,
IF( (an_referenti.email IS NOT NULL AND an_referenti.email!=""), an_referenti.email, an_anagrafiche.email) AS email
FROM dt_ddt INNER JOIN an_anagrafiche ON an_anagrafiche.idanagrafica=dt_ddt.idanagrafica LEFT OUTER JOIN an_referenti ON an_referenti.id=dt_ddt.idreferente WHERE dt_ddt.id='.prepare($id_record));