Fix: if option to select thirdparties using a combo box after n chars

was on, it was no more possible to clear the filter.
This commit is contained in:
Laurent Destailleur 2015-12-24 11:24:56 +01:00
parent 18fdb75c98
commit 74e8738ca7
2 changed files with 2 additions and 0 deletions

View File

@ -1016,6 +1016,7 @@ class Form
// Do not use textempty = ' ' or ' ' here, or search on key will search on ' key'.
//$textifempty=' ';
//if (! empty($conf->use_javascript_ajax) || $forcecombo) $textifempty='';
if (! empty($conf->global->COMPANY_USE_SEARCH_TO_SELECT)) $textifempty.=$langs->trans("NoFilter");
if ($showempty) $out.= '<option value="-1">'.$textifempty.'</option>'."\n";
$num = $this->db->num_rows($resql);

View File

@ -106,6 +106,7 @@ NotePrivate=Note (private)
PrecisionUnitIsLimitedToXDecimals=Dolibarr was setup to limit precision of unit prices to <b>%s</b> decimals.
DoTest=Test
ToFilter=Filter
NoFilter=No filter
WarningYouHaveAtLeastOneTaskLate=Warning, you have at least one element that has exceeded the tolerance delay.
yes=yes
Yes=Yes