Re-introduce getValues() override for subform values in wizard pages
Wizard pages don't subclass ConfigForm for which the patch was intended. Sorry for the bug. refs #10905
This commit is contained in:
parent
17dda6df4e
commit
23b51e8b52
|
@ -116,6 +116,21 @@ class AuthBackendPage extends Form
|
|||
$this->addSubForm($backendForm, 'backend_form');
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve all form element values
|
||||
*
|
||||
* @param bool $suppressArrayNotation Ignored
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getValues($suppressArrayNotation = false)
|
||||
{
|
||||
$values = parent::getValues();
|
||||
$values = array_merge($values, $values['backend_form']);
|
||||
unset($values['backend_form']);
|
||||
return $values;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate the given form data and check whether it's possible to authenticate using the configured backend
|
||||
*
|
||||
|
|
|
@ -129,4 +129,19 @@ class UserGroupBackendPage extends Form
|
|||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve all form element values
|
||||
*
|
||||
* @param bool $suppressArrayNotation Ignored
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getValues($suppressArrayNotation = false)
|
||||
{
|
||||
$values = parent::getValues();
|
||||
$values = array_merge($values, $values['backend_form']);
|
||||
unset($values['backend_form']);
|
||||
return $values;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue