File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,14 +29,14 @@ public function __construct(
2929 public function buildForm (FormBuilderInterface $ builder , array $ options ): void
3030 {
3131 $ entryOptions = $ options ['entry_options ' ];
32- $ entryOptions ['required ' ] = ($ options ['required ' ] ?? false ) && ($ entryOptions ['required ' ] ?? false );
32+ $ entryOptions ['required ' ] = ($ options ['required ' ] ?? false ) || ($ entryOptions ['required ' ] ?? false );
3333 $ entryOptions ['constraints ' ] = $ entryOptions ['constraints ' ] ?? [];
3434
3535 $ domainIds = $ this ->domainIdsProvider ->getAdminEnabledDomainIds ();
3636
3737 foreach ($ domainIds as $ domainId ) {
3838 if (array_key_exists ($ domainId , $ options ['options_by_domain_id ' ])) {
39- $ domainOptions = array_merge ($ entryOptions , $ options ['options_by_domain_id ' ][$ domainId ]);
39+ $ domainOptions = array_merge_recursive ($ entryOptions , $ options ['options_by_domain_id ' ][$ domainId ]);
4040 } else {
4141 $ domainOptions = $ entryOptions ;
4242 }
You can’t perform that action at this time.
0 commit comments