mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°1113 - Global search only searchable attributes
This commit is contained in:
@@ -622,7 +622,7 @@ class DBObjectSearch extends DBSearch
|
|||||||
{
|
{
|
||||||
if (!$oAttDef->IsScalar()) continue;
|
if (!$oAttDef->IsScalar()) continue;
|
||||||
if ($oAttDef->IsExternalKey()) continue;
|
if ($oAttDef->IsExternalKey()) continue;
|
||||||
if ($oAttDef instanceof AttributePassword) continue;
|
if (!$oAttDef->IsSearchable()) continue;
|
||||||
$aFullTextFields[] = new FieldExpression($sAttCode, $this->GetClassAlias());
|
$aFullTextFields[] = new FieldExpression($sAttCode, $this->GetClassAlias());
|
||||||
}
|
}
|
||||||
$oTextFields = new CharConcatWSExpression(' ', $aFullTextFields);
|
$oTextFields = new CharConcatWSExpression(' ', $aFullTextFields);
|
||||||
|
|||||||
Reference in New Issue
Block a user