From e77e0eec9fc085469c3865d9aea834f3ae44d95c Mon Sep 17 00:00:00 2001 From: bdalsass Date: Mon, 12 May 2025 16:16:34 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B08355=20-=20render=5Fdashboard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/dashboard.class.inc.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/application/dashboard.class.inc.php b/application/dashboard.class.inc.php index 0c311225d..4af25fe71 100644 --- a/application/dashboard.class.inc.php +++ b/application/dashboard.class.inc.php @@ -529,10 +529,7 @@ EOF */ public function Render($oPage, $bEditMode = false, $aExtraParams = array(), $bCanEdit = true) { - if (!array_key_exists('dashboard_div_id', $aExtraParams)) - { - $aExtraParams['dashboard_div_id'] = utils::Sanitize($this->GetId(), '', 'element_identifier'); - } + $aExtraParams['dashboard_div_id'] = utils::Sanitize($aExtraParams['dashboard_div_id'] ?? null, $this->GetId(), utils::ENUM_SANITIZATION_FILTER_ELEMENT_IDENTIFIER); $oPage->add('
'.htmlentities(Dict::S($this->sTitle), ENT_QUOTES, 'UTF-8', false).'
'); @@ -1059,7 +1056,7 @@ EOF $oPage->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.iframe-transport.js'); $oPage->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.fileupload.js'); $sEditMenu = "
'); $oPage->add('
'); // For exchanging messages between the panes, same as in the designer $oPage->add('
'); - + $sDialogTitle = Dict::S('UI:DashboardEdit:Title'); $sOkButtonLabel = Dict::S('UI:Button:Save'); $sCancelButtonLabel = Dict::S('UI:Button:Cancel');