X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLSelectAndOtherField.php;h=4e64e9d7cbc33505a294131c9025021d59d463a7;hb=d1592cdf05dd20fa0739301abbd78eb8eb1503f0;hp=a4d9bca67b9849ce01087209a05de384d13820a5;hpb=1b4f3579017a46344a9f1857db241bc3909bb7f5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLSelectAndOtherField.php b/includes/htmlform/fields/HTMLSelectAndOtherField.php index a4d9bca67b..4e64e9d7cb 100644 --- a/includes/htmlform/fields/HTMLSelectAndOtherField.php +++ b/includes/htmlform/fields/HTMLSelectAndOtherField.php @@ -119,8 +119,14 @@ class HTMLSelectAndOtherField extends HTMLSelectField { $dropdownInputAttribs['classes'] = [ $this->mClass ]; } + $disabled = false; + if ( isset( $this->mParams[ 'disabled' ] ) && $this->mParams[ 'disabled' ] ) { + $disabled = true; + } + return $this->getInputWidget( [ 'id' => $this->mID, + 'disabled' => $disabled, 'textinput' => $textAttribs, 'dropdowninput' => $dropdownInputAttribs, 'or' => false,