diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php index 418b4d4b565..a3382975929 100644 --- a/htdocs/contact/list.php +++ b/htdocs/contact/list.php @@ -339,7 +339,6 @@ if ($result) while ($i < min($num,$limit)) { $obj = $db->fetch_object($result); - if ($obj->statut == 0) { diff --git a/htdocs/core/lib/company.lib.php b/htdocs/core/lib/company.lib.php index 01dc133919c..ecb8413f810 100644 --- a/htdocs/core/lib/company.lib.php +++ b/htdocs/core/lib/company.lib.php @@ -553,7 +553,7 @@ function show_contacts($conf,$langs,$db,$object,$backtopage='') print ""; - $sql = "SELECT p.rowid, p.lastname, p.firstname, p.fk_pays, p.poste, p.phone, p.phone_mobile, p.fax, p.email, p.note "; + $sql = "SELECT p.rowid, p.lastname, p.firstname, p.fk_pays, p.poste, p.phone, p.phone_mobile, p.fax, p.email, p.statut "; $sql .= " FROM ".MAIN_DB_PREFIX."socpeople as p"; $sql .= " WHERE p.fk_soc = ".$object->id; $sql .= " ORDER by p.datec"; @@ -572,7 +572,6 @@ function show_contacts($conf,$langs,$db,$object,$backtopage='') if($obj->statut == 0) { $var = !$var; - print ""; print ''; diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index ad44e15b4a5..918ff20dd5f 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -1583,7 +1583,6 @@ class Societe extends CommonObject $sql = "SELECT rowid, email, statut, phone_mobile, lastname, firstname"; - $sql.= " FROM ".MAIN_DB_PREFIX."socpeople"; $sql.= " WHERE fk_soc = '".$this->id."'";