From e9d4ecc85c58c191bfc069a482e5a7d364d3f0f2 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Thu, 20 May 2021 17:56:20 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03171=20-=20Rollback=20on=20the=20Attribu?= =?UTF-8?q?teExternalKey::GetPrerequisites()=20as=20it=20was=20introducing?= =?UTF-8?q?=20more=20regressions=20than=20fixes=20(acf0548c)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/attributedef.class.inc.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 94b717407..210220f7c 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -6808,23 +6808,6 @@ class AttributeExternalKey extends AttributeDBFieldVoid return (int)$proposedValue; } - public function GetPrerequisiteAttributes($sClass = null) - { - $aAttributes = parent::GetPrerequisiteAttributes($sClass); - $oExpression = DBSearch::FromOQL($this->GetValuesDef()->GetFilterExpression())->GetCriteria(); - foreach ($oExpression->GetParameters('this') as $sAttCode) - { - // Skip the id as it cannot change anyway - if ($sAttCode =='id') continue; - - if (!in_array($sAttCode, $aAttributes)) - { - $aAttributes[] = $sAttCode; - } - } - return $aAttributes; - } - public function GetMaximumComboLength() { return $this->GetOptional('max_combo_length', MetaModel::GetConfig()->Get('max_combo_length'));