X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLRadioField.php;h=64f9cb6866de05752d2bd62f491d2d6d27dfbfaa;hp=19b45bea17af72e7573902da686262bc7a1d3126;hb=a2ea9f8b9289f197844e3282c2ac39e59c549996;hpb=02f609e06889a172c64a863481cc5f692f86e64a diff --git a/includes/htmlform/HTMLRadioField.php b/includes/htmlform/HTMLRadioField.php index 19b45bea17..64f9cb6866 100644 --- a/includes/htmlform/HTMLRadioField.php +++ b/includes/htmlform/HTMLRadioField.php @@ -40,15 +40,16 @@ class HTMLRadioField extends HTMLFormField { function getInputOOUI( $value ) { $options = array(); - foreach ( $this->getOptions() as $label => $value ) { + foreach ( $this->getOptions() as $label => $data ) { $options[] = array( - 'data' => $value, + 'data' => $data, 'label' => $this->mOptionsLabelsNotFromMessage ? new OOUI\HtmlSnippet( $label ) : $label, ); } return new OOUI\RadioSelectInputWidget( array( 'name' => $this->mName, + 'id' => $this->mID, 'value' => $value, 'options' => $options, 'classes' => 'mw-htmlform-flatlist-item',