Skip to content

Commit

Permalink
Fix missing formId in some fieldsets
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Sep 10, 2024
1 parent 9107aa0 commit 347105b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/FormGenerator/FormElementFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ protected static function createFieldsetFormElement(
string $formId = '',
bool $formIsPersistent = false
): FieldsetFormElement {
$fieldsetFormElement = new FieldsetFormElement($id, $config, $parent);
$fieldsetFormElement = new FieldsetFormElement($id, $config, $parent, $formId);

foreach ($config['children'] as $childId => $childConfig) {
$childFormElement = self::createFormElement(
Expand Down
2 changes: 1 addition & 1 deletion src/FormGenerator/FormElements/FieldsetFormElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(
bool $formIsPersistent = false
) {
unset($config['children']); // Children config not needed
parent::__construct($id, $config, $parent);
parent::__construct($id, $config, $parent, $formId, $formIsPersistent);
}

/**
Expand Down

0 comments on commit 347105b

Please sign in to comment.