ApiOptions: set form field parent earlier
Bug: T134351 Change-Id: I44b9bbd1663c876cf0c6160f10badfd8f380656b
This commit is contained in:
parent
d57458e64e
commit
93c5cc236a
1 changed files with 1 additions and 2 deletions
|
|
@ -86,8 +86,7 @@ class ApiOptions extends ApiBase {
|
|||
// We need a dummy HTMLForm for the validate callback...
|
||||
$htmlForm = new HTMLForm( [], $this );
|
||||
}
|
||||
$field = HTMLForm::loadInputFromParameters( $key, $prefs[$key] );
|
||||
$field->mParent = $htmlForm;
|
||||
$field = HTMLForm::loadInputFromParameters( $key, $prefs[$key], $htmlForm );
|
||||
$validation = $field->validate( $value, $user->getOptions() );
|
||||
break;
|
||||
case 'registered-multiselect':
|
||||
|
|
|
|||
Loading…
Reference in a new issue