Skip to content

Commit

Permalink
~ | Services - Form::hasSideForm: side form is not shown if it only c…
Browse files Browse the repository at this point in the history
…ontains fieldsets
  • Loading branch information
agnonym authored and ifox committed Apr 15, 2023
1 parent 08abb3a commit 12f84dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Forms/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function hasForm(): bool

public function hasSideForm(): bool
{
return $this->sideForm && $this->sideForm->isNotEmpty();
return $this->sideForm && ($this->sideForm->isNotEmpty() || ($this->sideForm->fieldsets && $this->sideForm->fieldsets->isNotEmpty()));
}

public function renderBaseForm(): View
Expand Down

0 comments on commit 12f84dc

Please sign in to comment.