From e6ffaa0f8bfe00fab69b585083617cc4ebbb3795 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 7 Jan 2018 16:41:45 +0100 Subject: [PATCH] Fix option MAIN_SHOW_TECHNICAL_ID --- htdocs/adherents/list.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/htdocs/adherents/list.php b/htdocs/adherents/list.php index 6b41a217f80..a01cc379b3c 100644 --- a/htdocs/adherents/list.php +++ b/htdocs/adherents/list.php @@ -401,7 +401,7 @@ print ''; // Line numbering -if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER)) +if (! empty($conf->global->MAIN_SHOW_TECHNICAL_ID)) { print ''; } @@ -552,10 +552,7 @@ print ''; print "\n"; print ''; -if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER)) -{ - print ''; -} +if (! empty($conf->global->MAIN_SHOW_TECHNICAL_ID)) print_liste_field_titre("ID",$_SERVER["PHP_SELF"],'','',$param,'align="center"',$sortfield,$sortorder); 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); @@ -611,9 +608,9 @@ while ($i < min($num, $limit)) print ''; - if (! empty($conf->global->MAIN_VIEW_LINE_NUMBER)) + if (! empty($conf->global->MAIN_SHOW_TECHNICAL_ID)) { - print ''; + print ''; } // Ref
 
'.$langs->trans("NumberingShort").'
'.($i+1).''.$obj->rowid.'