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',