From: vincent@cubedesigners.com Date: Thu, 8 Jul 2021 10:32:13 +0000 (+0000) Subject: wait #4580 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4feef1d63eed61906582617bfa1e48d47fe7b13f;p=cubeextranet.git wait #4580 @0.5 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index b87ad1dd5..dfa562ce3 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -746,9 +746,19 @@ class triggerLink extends normalLink { $res = parent::getAdditionnalContent(); - $res .= ' data-trigger-event="' . $this->target . '" data-trigger-id="' . $this->to . '"'; + $res .= ' data-trigger-event="' . $this->target . '" data-trigger-id="' . $this->_normalizeId($this->to) . '"'; return $res; } + + protected function _normalizeId($id) + { + $e = explode(',', $id); + $res = []; + foreach ($e as $item) { + $res = trim($item); + } + return implode(',', $res); + } } class showLinkLink extends normalLink