Follow-up Ifa346c8a92: LanguageNameUtils: CONSTRUCTOR_OTPIONS, not constructorOptions
[lhc/web/wiklou.git] / includes / htmlform / fields / HTMLUsersMultiselectField.php
index f094745..cda69a8 100644 (file)
@@ -3,7 +3,7 @@
 use MediaWiki\Widget\UsersMultiselectWidget;
 
 /**
- * Implements a capsule multiselect input field for user names.
+ * Implements a tag multiselect input field for user names.
  *
  * Besides the parameters recognized by HTMLUserTextField, additional recognized
  * parameters are:
@@ -56,6 +56,14 @@ class HTMLUsersMultiselectField extends HTMLUserTextField {
        public function getInputOOUI( $value ) {
                $params = [ 'name' => $this->mName ];
 
+               if ( isset( $this->mParams['id'] ) ) {
+                       $params['id'] = $this->mParams['id'];
+               }
+
+               if ( isset( $this->mParams['disabled'] ) ) {
+                       $params['disabled'] = $this->mParams['disabled'];
+               }
+
                if ( isset( $this->mParams['default'] ) ) {
                        $params['default'] = $this->mParams['default'];
                }