From 4f7676c42d8bf905764b53655439cf4a94cbfa40 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Mon, 16 Mar 2020 10:57:16 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B02735=20-=20Rollback=20previous=20"fixes"?= =?UTF-8?q?=20to=20keep=20the=20simple=20ID=20policy=20in=20the=20Designer?= =?UTF-8?q?=20and=20a=20unique=20ID=20generation=20at=20runtime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/dashboard.class.inc.php | 72 +++++++++++++---------------- js/dashboard.js | 54 ++++++++++++++-------- pages/ajax.render.php | 3 +- 3 files changed, 68 insertions(+), 61 deletions(-) diff --git a/application/dashboard.class.inc.php b/application/dashboard.class.inc.php index be0ebda65..35b9833e6 100644 --- a/application/dashboard.class.inc.php +++ b/application/dashboard.class.inc.php @@ -46,8 +46,6 @@ abstract class Dashboard protected $aCells; /** @var \ModelReflection $oMetaModel */ protected $oMetaModel; - /** @var bool $bCustomized */ - protected $bCustomized; /** * Dashboard constructor. @@ -63,7 +61,6 @@ abstract class Dashboard $this->aCells = array(); $this->oDOMNode = null; $this->sId = $sId; - $this->bCustomized = false; } /** @@ -421,24 +418,6 @@ abstract class Dashboard $this->iAutoReloadSec = max(MetaModel::GetConfig()->Get('min_reload_interval'), (int)$iAutoReloadSec); } - /** - * @return bool - * @since 2.7.0 - */ - public function GetCustomFlag() - { - return $this->bCustomized; - } - - /** - * @param bool $bCustomized - * @since 2.7.0 - */ - public function SetCustomFlag($bCustomized) - { - $this->bCustomized = $bCustomized; - } - /** * @param \Dashlet $oDashlet */ @@ -619,13 +598,9 @@ EOF /** @var \Dashlet $oDashlet */ foreach($aCell as $oDashlet) { - - $aDashletCoordinates = $oLayout->GetDashletCoordinates($iCellIdx); - $sId = $oDashlet->GetID(); - $sFinalId = static::GetDashletUniqueId($this->bCustomized, $this->GetSanitizedId(), $aDashletCoordinates[1], $aDashletCoordinates[0], $sId); if ($oDashlet->IsVisible()) { - $oPage->add('