mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°2974 - Fix Global Search doesn't search in external field.
For External Field, allow the search also for FriendlyNames.
This commit is contained in:
@@ -7015,6 +7015,15 @@ class AttributeExternalField extends AttributeDefinition
|
||||
return self::SEARCH_WIDGET_TYPE_RAW;
|
||||
}
|
||||
|
||||
function IsSearchable()
|
||||
{
|
||||
if ($this->IsFriendlyName())
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return parent::IsSearchable();
|
||||
}
|
||||
|
||||
public static function ListExpectedParams()
|
||||
{
|
||||
return array_merge(parent::ListExpectedParams(), array("extkey_attcode", "target_attcode"));
|
||||
|
||||
Reference in New Issue
Block a user