From 4b0eede1dd0408a4fda71a42923cb0ff4988f4f9 Mon Sep 17 00:00:00 2001 From: dolibarr95 <24292300+dolibarr95@users.noreply.github.com> Date: Wed, 21 Mar 2018 08:53:38 +0100 Subject: [PATCH] Delete getCountry() and select field in sql query Delete getCountry() and select field in sql query --- htdocs/societe/list.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index 452f3b089eb..d56e5b1e22a 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -399,6 +399,7 @@ $sql.= " s.email, s.phone, s.url, s.siren as idprof1, s.siret as idprof2, s.ape $sql.= " s.tms as date_update, s.datec as date_creation,"; $sql.= " s.code_compta,s.code_compta_fournisseur,"; $sql.= " typent.code as typent_code,"; +$sql.= " country.code as country_code,"; $sql.= " state.code_departement as state_code, state.nom as state_name,"; $sql.= " region.code_region as region_code, region.nom as region_name"; // We'll need these fields in order to filter by sale (including the case where the user can only see his prospects) @@ -1091,8 +1092,7 @@ while ($i < min($num, $limit)) } if (! empty($arrayfields['s.phone']['checked'])) { - $tmpcode=getCountry($obj->fk_pays,2); - print "