From f6eebf0ed5be4bc2ac3407f503255bf4087e4e31 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Thu, 17 Jan 2019 17:48:13 +0100 Subject: [PATCH] Update card.php --- htdocs/adherents/subscription/card.php | 37 +++++++++++++------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/htdocs/adherents/subscription/card.php b/htdocs/adherents/subscription/card.php index 7ef9b36487c..a8d7708dfd5 100644 --- a/htdocs/adherents/subscription/card.php +++ b/htdocs/adherents/subscription/card.php @@ -76,7 +76,7 @@ $fieldstosearchall = array( ); $arrayfields=array( 'd.ref'=>array('label'=>$langs->trans("Ref"), 'checked'=>1), - 'd.fk_type'=>array('label'=>$langs->trans("Type"), 'checked'=>1), + 'd.fk_type'=>array('label'=>$langs->trans("Type"), 'checked'=>1), 'd.lastname'=>array('label'=>$langs->trans("Lastname"), 'checked'=>1), 'd.firstname'=>array('label'=>$langs->trans("Firstname"), 'checked'=>1), 'd.login'=>array('label'=>$langs->trans("Login"), 'checked'=>1), @@ -115,17 +115,17 @@ if (empty($reshook)) // Purge search criteria if (GETPOST('button_removefilter_x','alpha') || GETPOST('button_removefilter.x','alpha') || GETPOST('button_removefilter','alpha')) // All tests are required to be compatible with all browsers { - $search=""; - $search_type=""; - $search_ref=""; - $search_lastname=""; - $search_firstname=""; - $search_login=""; - $search_note=""; - $search_amount=""; - $search_account=""; - $toselect=''; - $search_array_options=array(); + $search=""; + $search_type=""; + $search_ref=""; + $search_lastname=""; + $search_firstname=""; + $search_login=""; + $search_note=""; + $search_amount=""; + $search_account=""; + $toselect=''; + $search_array_options=array(); } } @@ -471,13 +471,14 @@ while ($i < min($num, $limit)) print ''.$subscription->getNomUrl(1).''; if (! $i) $totalarray['nbfield']++; } - // Type - if (! empty($arrayfields['d.fk_type']['checked'])) + + // Type + if (! empty($arrayfields['d.fk_type']['checked'])) { - print ''; - if ( ! empty($obj->fk_type) ) print $adht->getNomUrl(1); - print ''; - if (! $i) $totalarray['nbfield']++; + print ''; + if ( ! empty($obj->fk_type) ) print $adht->getNomUrl(1); + print ''; + if (! $i) $totalarray['nbfield']++; } // Lastname