forked from GNUsocial/gnu-social
[FORM][WRAPPER] Merge argument options, not replace
This commit is contained in:
parent
fdcedb8295
commit
b4fb1569ce
@ -46,7 +46,7 @@ abstract class Form
|
|||||||
string $type = 'Symfony\Component\Form\Extension\Core\Type\FormType',
|
string $type = 'Symfony\Component\Form\Extension\Core\Type\FormType',
|
||||||
array $options = null): SymfForm
|
array $options = null): SymfForm
|
||||||
{
|
{
|
||||||
$fb = self::$form_factory->createBuilder($type, $options ?: ['translation_domain' => false]);
|
$fb = self::$form_factory->createBuilder($type, array_merge($options ?? [], ['translation_domain' => false]));
|
||||||
foreach ($form as $f) {
|
foreach ($form as $f) {
|
||||||
$fb->add(...$f);
|
$fb->add(...$f);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user