HTMLForm: Pass field data instead of fields to filter
I believe there is a mistake, since DefaultPreferencesFactory::cleanSignature() uses it as field data, which is the only filter applied in the core. Change-Id: Ic7aa509a3e5fd3a3c717259d83d5bf0a26d3556a
This commit is contained in:
parent
079a6e1fde
commit
0ae7dad148
2 changed files with 2 additions and 2 deletions
|
|
@ -2036,7 +2036,7 @@ class HTMLForm extends ContextSource {
|
|||
# Filter data.
|
||||
foreach ( $fieldData as $name => &$value ) {
|
||||
$field = $this->mFlatFields[$name];
|
||||
$value = $field->filter( $value, $this->mFlatFields );
|
||||
$value = $field->filter( $value, $fieldData );
|
||||
}
|
||||
|
||||
$this->mFieldData = $fieldData;
|
||||
|
|
|
|||
|
|
@ -353,7 +353,7 @@ abstract class HTMLFormField {
|
|||
* @stable to override
|
||||
*
|
||||
* @param mixed $value
|
||||
* @param HTMLFormField[] $alldata
|
||||
* @param mixed[] $alldata
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue