mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
#948 Finalization of the full text accelerators: two new parameters: 'skip' and 'enable_enlarge'. 'attributes' is now an optional parameter.
SVN:trunk[3227]
This commit is contained in:
12
pages/UI.php
12
pages/UI.php
@@ -580,11 +580,15 @@ try
|
||||
{
|
||||
try
|
||||
{
|
||||
$oSearch = DBObjectSearch::FromOQL($aAccelerator['query']);
|
||||
if ($sClass != $oSearch->GetClass())
|
||||
$bSkip = array_key_exists('skip', $aAccelerator) ? $aAccelerator['skip'] : false;
|
||||
if (!$bSkip)
|
||||
{
|
||||
$oP->p("Full text accelerator for class '$sClass': searched class mismatch (".$oSearch->GetClass().")");
|
||||
$iErrors++;
|
||||
$oSearch = DBObjectSearch::FromOQL($aAccelerator['query']);
|
||||
if ($sClass != $oSearch->GetClass())
|
||||
{
|
||||
$oP->p("Full text accelerator for class '$sClass': searched class mismatch (".$oSearch->GetClass().")");
|
||||
$iErrors++;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (OqlException $e)
|
||||
|
||||
Reference in New Issue
Block a user