From 2e346a7e80f6e75fb3b32dbba4e3d35c54a4895e Mon Sep 17 00:00:00 2001 From: acognet Date: Tue, 7 Sep 2021 10:44:04 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04184=20-=20Alert=20UI=20block=20is=20col?= =?UTF-8?q?lapsible=20only=20if=20there=20is=20a=20title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/application/UI/Base/Component/Alert/Alert.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sources/application/UI/Base/Component/Alert/Alert.php b/sources/application/UI/Base/Component/Alert/Alert.php index d7947d7ce..e25985cda 100644 --- a/sources/application/UI/Base/Component/Alert/Alert.php +++ b/sources/application/UI/Base/Component/Alert/Alert.php @@ -228,6 +228,10 @@ class Alert extends UIContentBlock */ public function IsCollapsible(): bool { + if (empty($this->sTitle)) { + return false; + } + return $this->bIsCollapsible; }