N°2847 - Fix ajax tabs

This commit is contained in:
Eric
2020-11-04 10:28:40 +01:00
parent cfbfaad154
commit 1fc54edf21

View File

@@ -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;