From d978d64d5906116d957af65dad64e0c0149f319d Mon Sep 17 00:00:00 2001 From: BENKE Charles Date: Tue, 24 Sep 2013 14:19:52 +0200 Subject: [PATCH] Update commonobject.class.php just the active type of contact --- htdocs/core/class/commonobject.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index 6d89e18c77d..c2a8a052df1 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -461,6 +461,7 @@ abstract class CommonObject $sql = "SELECT DISTINCT tc.rowid, tc.code, tc.libelle"; $sql.= " FROM ".MAIN_DB_PREFIX."c_type_contact as tc"; $sql.= " WHERE tc.element='".$this->element."'"; + $sql.= " AND tc.active=1"; // only the active type if (! empty($source)) $sql.= " AND tc.source='".$source."'"; $sql.= " ORDER by tc.".$order;