diff --git a/htdocs/user/index.php b/htdocs/user/index.php index 97b6feac508..d0715101b09 100644 --- a/htdocs/user/index.php +++ b/htdocs/user/index.php @@ -2,6 +2,7 @@ /* Copyright (C) 2002-2005 Rodolphe Quiedeville * Copyright (C) 2004-2011 Laurent Destailleur * Copyright (C) 2005-2012 Regis Houssin + * Copyright (C) 2015 Alexandre Spangaro * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -62,6 +63,15 @@ $userstatic=new User($db); $companystatic = new Societe($db); $form = new Form($db); +if (GETPOST("button_removefilter_x") || GETPOST("button_removefilter")) // Both test are required to be compatible with all browsers +{ + $search_user=""; + $search_login=""; + $search_lastname=""; + $search_firstname=""; + $search_statut=""; + $search_thirdparty=""; +} /* * View @@ -144,9 +154,9 @@ if ($result) print $form->selectarray('search_statut', array('-1'=>'','0'=>$langs->trans('Disabled'),'1'=>$langs->trans('Enabled')),$search_statut); print ''; - print ''; - print ''; - print ''; + print ''; + print ''; + print ''; print "\n";