mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°1226 : When global searching with needles smaller than 'full_text_needle_min', exclude these needles from the search instead of stopping it
SVN:trunk[5799]
This commit is contained in:
12
pages/UI.php
12
pages/UI.php
@@ -590,9 +590,19 @@ try
|
||||
if (strlen($sNeedle) < $iMinLenth)
|
||||
{
|
||||
$oP->p(Dict::Format('UI:Search:NeedleTooShort', $sNeedle, $iMinLenth));
|
||||
$iErrors++;
|
||||
$key = array_search($sNeedle, $aFullTextNeedles);
|
||||
if($key!== false)
|
||||
{
|
||||
unset($aFullTextNeedles[$key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if(empty($aFullTextNeedles))
|
||||
{
|
||||
$oP->p(Dict::S('UI:Search:NoSearch'));
|
||||
break;
|
||||
}
|
||||
$sFullText = implode(' ', $aFullTextNeedles);
|
||||
|
||||
// Sanity check of the accelerators
|
||||
/** @var array $aAccelerators */
|
||||
|
||||
Reference in New Issue
Block a user