From 12f84dc42aca11b2aaa8d39a8657351e0b76c564 Mon Sep 17 00:00:00 2001 From: agnonym <36710878+agnonym@users.noreply.github.com> Date: Sat, 15 Apr 2023 17:59:15 +0200 Subject: [PATCH] ~ | Services - Form::hasSideForm: side form is not shown if it only contains fieldsets --- src/Services/Forms/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Forms/Form.php b/src/Services/Forms/Form.php index 392cdd744..f8498cd81 100644 --- a/src/Services/Forms/Form.php +++ b/src/Services/Forms/Form.php @@ -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