From c024578ca11ae84877ce869ef9c8e0121ca3da68 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Wed, 2 Sep 2015 19:41:54 +0200 Subject: [PATCH] Fix bad link and remove a break --- htdocs/compta/facture/impayees.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/facture/impayees.php b/htdocs/compta/facture/impayees.php index 8094a3206d8..e3f30fc5c0e 100644 --- a/htdocs/compta/facture/impayees.php +++ b/htdocs/compta/facture/impayees.php @@ -217,7 +217,6 @@ if ($action == 'presend' && GETPOST('sendmail')) $langs->load("other"); $resultmasssend.='<div class="error">'.$langs->trans('ErrorCantReadFile',$file).'</div>'; dol_syslog('Failed to read file: '.$file); - break ; } } } @@ -471,8 +470,8 @@ if ($resql) else $titre.=' ('.$langs->trans("All").')'; $link=''; - if (empty($option)) $link='<a href="'.$_SERVER["PHP_SELF"].'?option=late">'.$langs->trans("ShowUnpaidLateOnly").'</a>'; - elseif ($option == 'late') $link='<a href="'.$_SERVER["PHP_SELF"].'">'.$langs->trans("ShowUnpaidAll").'</a>'; + if (empty($option)) $link='<a href="'.$_SERVER["PHP_SELF"].'?option=late'.$param.'">'.$langs->trans("ShowUnpaidLateOnly").'</a>'; + elseif ($option == 'late') $link='<a href="'.$_SERVER["PHP_SELF"].($param?'?'.preg_replace('/&?(amps;)?option=late/','',$param):'').'">'.$langs->trans("ShowUnpaidAll").'</a>'; print_fiche_titre($titre,$link); //print_barre_liste($titre,$page,$_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,'',0); // We don't want pagination on this page -- GitLab