Skip to content

Commit

Permalink
IBX-7935: Allow struct to be null option
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 committed May 29, 2024
1 parent 3f77e4a commit e4523eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Form/Type/Content/BaseContentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ public function configureOptions(OptionsResolver $resolver)
?? $options['userCreateStruct']
?? $options['contentUpdateStruct']
?? $options['contentCreateStruct']
?? $options['data']
?? null;
})
->setDefaults([
Expand All @@ -89,6 +88,7 @@ public function configureOptions(OptionsResolver $resolver)
->setAllowedTypes(
'struct',
[
'null',
ContentCreateStruct::class,
ContentUpdateStruct::class,
UserCreateStruct::class,
Expand Down

0 comments on commit e4523eb

Please sign in to comment.