X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLSelectAndOtherField.php;h=cdb8f5b909603bce4b80c717cf6244252d73fd6b;hb=0360a3114e7a973ee455f83c57db0ad68afdddff;hp=38b487af10e457fb430f9545b9b644c48213cae1;hpb=36395150104588f2afea866c330b683e4329fa48;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLSelectAndOtherField.php b/includes/htmlform/fields/HTMLSelectAndOtherField.php index 38b487af10..cdb8f5b909 100644 --- a/includes/htmlform/fields/HTMLSelectAndOtherField.php +++ b/includes/htmlform/fields/HTMLSelectAndOtherField.php @@ -72,11 +72,10 @@ class HTMLSelectAndOtherField extends HTMLSelectField { # TextInput $textAttribs = [ - 'id' => $this->mID . '-other', 'name' => $this->mName . '-other', 'size' => $this->getSize(), 'class' => [ 'mw-htmlform-select-and-other-field' ], - 'data-id-select' => $this->mID, + 'data-id-select' => $this->mID . '-select', 'value' => $value[2], ]; @@ -100,7 +99,7 @@ class HTMLSelectAndOtherField extends HTMLSelectField { # DropdownInput $dropdownInputAttribs = [ 'name' => $this->mName, - 'id' => $this->mID, + 'id' => $this->mID . '-select', 'options' => $this->getOptionsOOUI(), 'value' => $value[1], ]; @@ -119,6 +118,7 @@ class HTMLSelectAndOtherField extends HTMLSelectField { } return $this->getInputWidget( [ + 'id' => $this->mID, 'textinput' => $textAttribs, 'dropdowninput' => $dropdownInputAttribs, 'or' => false, @@ -126,7 +126,7 @@ class HTMLSelectAndOtherField extends HTMLSelectField { } public function getInputWidget( $params ) { - return new Mediawiki\Widget\SelectWithInputWidget( $params ); + return new MediaWiki\Widget\SelectWithInputWidget( $params ); } /**