mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-06 04:07:50 +01:00
Merge branch 'master' of https://github.com/devcode-it/openstamanager
This commit is contained in:
commit
9ef6ce31c7
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user