From 1fc54edf210ce5d118a7141b52bf734d22ce884c Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 4 Nov 2020 10:28:40 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B02847=20-=20Fix=20ajax=20tabs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/application/UI/Layout/TabContainer/TabContainer.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sources/application/UI/Layout/TabContainer/TabContainer.php b/sources/application/UI/Layout/TabContainer/TabContainer.php index 183d07286..6cc727bb4 100644 --- a/sources/application/UI/Layout/TabContainer/TabContainer.php +++ b/sources/application/UI/Layout/TabContainer/TabContainer.php @@ -71,7 +71,11 @@ class TabContainer extends UIContentBlock */ public function __construct($sName, $sPrefix) { - parent::__construct("{$sName}".((!empty($sPrefix)) ? "-{$sPrefix}" : "")); + $sId = null; + if (!empty($sName) || !empty($sPrefix)) { + $sId = "{$sName}".((!empty($sPrefix)) ? "-{$sPrefix}" : ""); + } + parent::__construct($sId); $this->sName = $sName; $this->sPrefix = $sPrefix;