From f92a980b4dafdb8ca412defee9609d4ff1e72ae7 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 4 May 2020 18:13:18 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B02974=20-=20Fix=20Global=20Search=20doesn?= =?UTF-8?q?'t=20search=20in=20external=20field.=20For=20External=20Field,?= =?UTF-8?q?=20allow=20the=20search=20also=20for=20FriendlyNames.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/attributedef.class.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index ade678f76..4d81d0ca5 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -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"));