From a8a3385969975f37feb56c58a8d48386c5d3607e Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 21 Jun 2023 16:06:22 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B06460=20-=20Sort=20\AttributeClassAttCode?= =?UTF-8?q?Set=20alphabetically=20(eg.=20"Target=20fields"=20in=20Trigger?= =?UTF-8?q?=20class)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/attributedef.class.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 98c88caaf0..f8fff6c28e 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -11302,6 +11302,9 @@ class AttributeClassAttCodeSet extends AttributeSet } $aAllowedAttributes[$sAttCode] = $sLabel; } + // N°6460 Always sort on the labels, not on the datamodel definition order + natcasesort($aAllowedAttributes); + return $aAllowedAttributes; }