mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°1500 Advanced search on external keys performance
- first search using "equals" or "start with" - then using "contains" - search is triggered at two first chars SVN:trunk[5859]
This commit is contained in:
@@ -467,6 +467,7 @@ try
|
||||
$sContains = utils::ReadParam('q', '', false, 'raw_data');
|
||||
$bSearchMode = (utils::ReadParam('bSearchMode', 'false') == 'true');
|
||||
$sOutputFormat = utils::ReadParam('sOutputFormat', UIExtKeyWidget::ENUM_OUTPUT_FORMAT_CSV, false, 'raw_data');
|
||||
$sAutocompleteOperation = utils::ReadParam('sAutocompleteOperation', null, false, 'raw_data');
|
||||
if ($sContains != '')
|
||||
{
|
||||
if (!empty($sJson))
|
||||
@@ -480,7 +481,7 @@ try
|
||||
$oObj = null;
|
||||
}
|
||||
$oWidget = new UIExtKeyWidget($sTargetClass, $iInputId, '', $bSearchMode);
|
||||
$oWidget->AutoComplete($oPage, $sFilter, $oObj, $sContains, $sOutputFormat);
|
||||
$oWidget->AutoComplete($oPage, $sFilter, $oObj, $sContains, $sOutputFormat, $sAutocompleteOperation);
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user