diff --git a/htdocs/adherents/list.php b/htdocs/adherents/list.php
index db017d71f61..a17d9a84b29 100644
--- a/htdocs/adherents/list.php
+++ b/htdocs/adherents/list.php
@@ -107,6 +107,7 @@ $arrayfields=array(
'd.ref'=>array('label'=>$langs->trans("Ref"), 'checked'=>1),
'd.lastname'=>array('label'=>$langs->trans("Lastname"), 'checked'=>1),
'd.firstname'=>array('label'=>$langs->trans("Firstname"), 'checked'=>1),
+ 'd.civility'=>array('label'=>$langs->trans("Civility"), 'checked'=>0),
'd.company'=>array('label'=>$langs->trans("Company"), 'checked'=>1),
'd.login'=>array('label'=>$langs->trans("Login"), 'checked'=>1),
'd.morphy'=>array('label'=>$langs->trans("MorPhy"), 'checked'=>1),
@@ -202,7 +203,7 @@ $memberstatic=new Adherent($db);
$now=dol_now();
-$sql = "SELECT d.rowid, d.login, d.lastname, d.firstname, d.societe as company, d.fk_soc,";
+$sql = "SELECT d.rowid, d.login, d.lastname, d.firstname, d.civility, d.societe as company, d.fk_soc,";
$sql.= " d.datefin, d.address, d.zip, d.town, d.state_id, d.country,";
$sql.= " d.email, d.phone, d.phone_perso, d.phone_mobile, d.skype, d.birth, d.public, d.photo,";
$sql.= " d.fk_adherent_type as type_id, d.morphy, d.statut, d.datec as date_creation, d.tms as date_update,";
@@ -427,37 +428,36 @@ if (! empty($arrayfields['d.ref']['checked']))
print '';
print '';
}
-
if (! empty($arrayfields['d.firstname']['checked']))
{
print '
';
print ' | ';
}
-
if (! empty($arrayfields['d.lastname']['checked']))
{
print '';
print ' | ';
}
-
+if (! empty($arrayfields['d.civility']['checked']))
+{
+ print '';
+ print ' | ';
+}
if (! empty($arrayfields['d.company']['checked']))
{
print '';
print ' | ';
}
-
if (! empty($arrayfields['d.login']['checked']))
{
print '';
print ' | ';
}
-
if (! empty($arrayfields['d.morphy']['checked']))
{
print '';
print ' | ';
}
-
if (! empty($arrayfields['t.libelle']['checked']))
{
print '';
@@ -570,6 +570,7 @@ if (! empty($conf->global->MAIN_SHOW_TECHNICAL_ID)) print_liste_field_titr
if (! empty($arrayfields['d.ref']['checked'])) print_liste_field_titre($arrayfields['d.ref']['label'],$_SERVER["PHP_SELF"],'d.rowid','',$param,'',$sortfield,$sortorder);
if (! empty($arrayfields['d.firstname']['checked'])) print_liste_field_titre($arrayfields['d.firstname']['label'],$_SERVER["PHP_SELF"],'d.firstname','',$param,'',$sortfield,$sortorder);
if (! empty($arrayfields['d.lastname']['checked'])) print_liste_field_titre($arrayfields['d.lastname']['label'],$_SERVER["PHP_SELF"],'d.lastname','',$param,'',$sortfield,$sortorder);
+if (! empty($arrayfields['d.civility']['checked'])) print_liste_field_titre($arrayfields['d.civility']['label'],$_SERVER["PHP_SELF"],'d.civility','',$param,'',$sortfield,$sortorder);
if (! empty($arrayfields['d.company']['checked'])) print_liste_field_titre($arrayfields['d.company']['label'],$_SERVER["PHP_SELF"],'d.societe','',$param,'',$sortfield,$sortorder);
if (! empty($arrayfields['d.login']['checked'])) print_liste_field_titre($arrayfields['d.login']['label'],$_SERVER["PHP_SELF"],'d.login','',$param,'',$sortfield,$sortorder);
if (! empty($arrayfields['d.morphy']['checked'])) print_liste_field_titre($arrayfields['d.morphy']['label'],$_SERVER["PHP_SELF"],'d.morphy','',$param,'',$sortfield,$sortorder);
@@ -605,6 +606,7 @@ while ($i < min($num, $limit))
$datefin=$db->jdate($obj->datefin);
$memberstatic->id=$obj->rowid;
$memberstatic->ref=$obj->rowid;
+ $memberstatic->civility_id=$obj->civility;
$memberstatic->lastname=$obj->lastname;
$memberstatic->firstname=$obj->firstname;
$memberstatic->statut=$obj->statut;
@@ -648,6 +650,13 @@ while ($i < min($num, $limit))
print $obj->lastname;
print " | \n";
}
+ // Civility
+ if (! empty($arrayfields['d.civility']['checked']))
+ {
+ print "";
+ print $obj->civility;
+ print " | \n";
+ }
// Company
if (! empty($arrayfields['d.company']['checked']))
{