wiki.techinc.nl/includes/htmlform
Florianschmidtwelzow 46ab7a8290 HTMLRadioField: Use another variable for the radio value to avoid conflicts
$value is used in a foreach loop to build the radioselect fields array for OOUI,
but $value is also the variable, which holds the default value for the element
(or a value, which ws submitted by the user), to pre-select the correct radio input
field. That results in the problem, that $value will always contain the last data,
which passed the foreach loop, and always the last radio input field will be pre-
selected, no matter, what the developer defined as the default or what the user
submitted in a prior form instance.

Change the variable used in the foreach loop to avoid this conflict.

Change-Id: I36c760be8ccd86e75249c966f697b499576c83d4
2015-10-28 18:55:07 +00:00
..
HTMLApiField.php
HTMLAutoCompleteSelectField.php Implement OOUI display format for HTMLForm 2015-05-23 16:10:08 +02:00
HTMLButtonField.php Merge "Fixed spacing" 2015-09-26 21:02:39 +00:00
HTMLCheckField.php Fix PHPCS warnings in includes/htmlform/ 2015-09-28 13:35:28 +02:00
HTMLCheckMatrix.php OOUIHTMLForm: Implement HTMLMultiSelectField 2015-06-27 13:14:25 +00:00
HTMLEditTools.php
HTMLFloatField.php
HTMLForm.php Fix PHPCS warnings in includes/htmlform/ 2015-09-28 13:35:28 +02:00
HTMLFormField.php Fix PHPCS warnings in includes/htmlform/ 2015-09-28 13:35:28 +02:00
HTMLFormFieldCloner.php
HTMLFormFieldRequiredOptionsException.php
HTMLFormFieldWithButton.php HTMLForm: Handle HTMLFormFieldWithButton subclasses in OOUI forms 2015-07-22 19:08:19 -07:00
HTMLHiddenField.php Hoist validation errors from hidden fields to the top of the form 2015-09-25 17:40:30 +00:00
HTMLInfoField.php Implement OOUI display format for HTMLForm 2015-05-23 16:10:08 +02:00
HTMLIntField.php
HTMLMultiSelectField.php OOUIHTMLForm: Implement HTMLMultiSelectField 2015-06-27 13:14:25 +00:00
HTMLNestedFilterable.php
HTMLRadioField.php HTMLRadioField: Use another variable for the radio value to avoid conflicts 2015-10-28 18:55:07 +00:00
HTMLSelectAndOtherField.php Kill broken OOUI implementations of HTMLSelectAndOtherField, HTMLSelectOrOtherField 2015-07-27 01:42:23 +02:00
HTMLSelectField.php Implement OOUI display format for HTMLForm 2015-05-23 16:10:08 +02:00
HTMLSelectLimitField.php
HTMLSelectNamespace.php Refactor NamespaceInputWidget 2015-08-20 15:10:51 +00:00
HTMLSelectNamespaceWithButton.php ellapsed => elapsed 2015-06-23 03:32:33 +00:00
HTMLSelectOrOtherField.php Kill broken OOUI implementations of HTMLSelectAndOtherField, HTMLSelectOrOtherField 2015-07-27 01:42:23 +02:00
HTMLSubmitField.php Fix Button label in OOUI HTML Form and enable flags 2015-06-25 14:56:05 +02:00
HTMLTagFilter.php
HTMLTextAreaField.php OOUIHTMLForm: Make boolean form field parameters actually work everywhere 2015-09-01 13:16:52 +00:00
HTMLTextField.php OOUIHTMLForm: Make boolean form field parameters actually work everywhere 2015-09-01 13:16:52 +00:00
HTMLTextFieldWithButton.php ellapsed => elapsed 2015-06-23 03:32:33 +00:00
HTMLTitleTextField.php Fix PHPCS warnings in includes/htmlform/ 2015-09-28 13:35:28 +02:00
HTMLUserTextField.php Split out UserInputWidgets from mediawiki.widgets 2015-10-07 08:54:35 -07:00
OOUIHTMLForm.php Fix PHPCS warnings in includes/htmlform/ 2015-09-28 13:35:28 +02:00
VFormHTMLForm.php Fix PHPCS warnings in includes/htmlform/ 2015-09-28 13:35:28 +02:00