X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLSelectOrOtherField.php;h=47c1f18faef3d0a547ea0fbc85027aa76943a1d3;hb=4d75fbf3571c765a3d84140cb77b45a86aab3184;hp=91050a0cc672bc8d50a7cfa6b1d39f269f650406;hpb=e602b197ab5ea867799b8e790a9f7b9f877da952;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLSelectOrOtherField.php b/includes/htmlform/fields/HTMLSelectOrOtherField.php index 91050a0cc6..47c1f18fae 100644 --- a/includes/htmlform/fields/HTMLSelectOrOtherField.php +++ b/includes/htmlform/fields/HTMLSelectOrOtherField.php @@ -125,8 +125,14 @@ class HTMLSelectOrOtherField extends HTMLTextField { $textAttribs['placeholder'] = $this->mPlaceholder; } + $disabled = false; + if ( isset( $this->mParams[ 'disabled' ] ) && $this->mParams[ 'disabled' ] ) { + $disabled = true; + } + return $this->getInputWidget( [ 'id' => $this->mID, + 'disabled' => $disabled, 'textinput' => $textAttribs, 'dropdowninput' => $dropdownAttribs, 'or' => true,