diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2025-01-10 17:50:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2025-01-10 17:50:32 +0000 |
commit | 91ab9aeb91e09dde6856a2a0d403bd4b0ac61b7e (patch) | |
tree | 384c7fc78d0638f9d92e7c5d6ea045887f8c61f7 /includes/htmlform/fields | |
parent | c2c98ca061e3962650db212af827566688611c35 (diff) | |
parent | 546cbf4f0d04cd173324ea6df7b2053933442800 (diff) | |
download | mediawikicore-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.php | 1 |
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() ?: []; |