aboutsummaryrefslogtreecommitdiffstats
path: root/includes/htmlform/fields
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2025-01-10 17:50:32 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2025-01-10 17:50:32 +0000
commit91ab9aeb91e09dde6856a2a0d403bd4b0ac61b7e (patch)
tree384c7fc78d0638f9d92e7c5d6ea045887f8c61f7 /includes/htmlform/fields
parentc2c98ca061e3962650db212af827566688611c35 (diff)
parent546cbf4f0d04cd173324ea6df7b2053933442800 (diff)
downloadmediawikicore-91ab9aeb91e09dde6856a2a0d403bd4b0ac61b7e.tar.gz
mediawikicore-91ab9aeb91e09dde6856a2a0d403bd4b0ac61b7e.zip
Merge "htmlform: Disallow reordering options in HTMLMultiSelectField with dropdown"
Diffstat (limited to 'includes/htmlform/fields')
-rw-r--r--includes/htmlform/fields/HTMLMultiSelectField.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/htmlform/fields/HTMLMultiSelectField.php b/includes/htmlform/fields/HTMLMultiSelectField.php
index f8f15edad092..361260b58780 100644
--- a/includes/htmlform/fields/HTMLMultiSelectField.php
+++ b/includes/htmlform/fields/HTMLMultiSelectField.php
@@ -266,6 +266,7 @@ class HTMLMultiSelectField extends HTMLFormField implements HTMLNestedFilterable
'options' => $optionsSections,
'default' => $value,
'noJsFallback' => $out,
+ 'allowReordering' => false,
] + $params );
} elseif ( count( $out ) === 1 ) {
$firstFieldData = $out[0]->getData() ?: [];