Update societecontact.php

This commit is contained in:
Laurent Destailleur 2018-02-25 12:52:39 +01:00 committed by GitHub
parent 4c06384197
commit 4581d6049c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,7 +223,7 @@ if ($id > 0 || ! empty($ref))
$sql.= " FROM ".MAIN_DB_PREFIX."adherent as d";
$sql.= ", ".MAIN_DB_PREFIX."adherent_type as t";
$sql.= " WHERE d.fk_soc = ".$id;
$sql.= " AND fk_adherent_type = t.rowid";
$sql.= " AND d.fk_adherent_type = t.rowid";
dol_syslog("get list sql=".$sql);
$resql = $db->query($sql);