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:
Eric
2020-05-04 18:13:18 +02:00
parent 843798505a
commit f92a980b4d

View File

@@ -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"));