diff --git a/application/dashlet.class.inc.php b/application/dashlet.class.inc.php index 55dbd13adc..9d37bfc8e5 100644 --- a/application/dashlet.class.inc.php +++ b/application/dashlet.class.inc.php @@ -917,7 +917,6 @@ abstract class DashletGroupBy extends Dashlet protected function MakeSimulatedData() { $sQuery = $this->aProperties['query']; - $sGroupBy = $this->aProperties['group_by']; $oQuery = $this->oModelReflection->GetQuery($sQuery); $sClass = $oQuery->GetClass(); @@ -1334,7 +1333,6 @@ class DashletGroupByBars extends DashletGroupBy $sJSNames = json_encode($aNames); $sJson = json_encode($aDisplayValues); - $sJSCount = json_encode(Dict::S('UI:GroupBy:Count')); $oPage->add_ready_script( <<aProperties['title']; $aDisplayValues = $this->MakeSimulatedData(); $iTotal = 0; @@ -1616,7 +1613,6 @@ class DashletHeaderDynamic extends Dashlet $sSubtitle = $this->aProperties['subtitle']; $sQuery = $this->aProperties['query']; $sGroupBy = $this->aProperties['group_by']; - $aValues = $this->aProperties['values']; $oQuery = $this->oModelReflection->GetQuery($sQuery); $sClass = $oQuery->GetClass(); @@ -1633,14 +1629,6 @@ class DashletHeaderDynamic extends Dashlet $iTotal = 0; $aValues = $this->GetValues(); - if (count($aValues) > 0) - { - // Stats grouped by - } - else - { - // Simple stats - } $oPage->add('
'); $oPage->add('
'); @@ -1665,7 +1653,6 @@ class DashletHeaderDynamic extends Dashlet $sTitle = $this->oModelReflection->DictString($sTitle); $sSubtitle = $this->oModelReflection->DictFormat($sSubtitle, $iTotal); -// $sSubtitle = "original: $sSubtitle, S:".$this->oModelReflection->DictString($sSubtitle).", Format: '".$this->oModelReflection->DictFormat($sSubtitle, $iTotal)."'"; $oPage->add('

'.$sTitle.'

'); $oPage->add(''.$sSubtitle.''); @@ -1814,7 +1801,7 @@ class DashletBadge extends Dashlet $aExtraParams = array( 'context_filter' => 1, ); - $sBlockId = 'block_'.$this->sId.($bEditMode ? '_edit' : ''); // make a unique id (edition occuring in the same DOM) + $sBlockId = 'block_'.$this->sId.($bEditMode ? '_edit' : ''); // make a unique id (edition occurring in the same DOM) $oBlock->Display($oPage, $sBlockId, $aExtraParams); $oPage->add('
'); @@ -1863,7 +1850,6 @@ class DashletBadge extends Dashlet foreach($aClasses as $sClass => $sLabel) { $sIconUrl = $this->oModelReflection->GetClassIcon($sClass, false); - $sIconFilePath = str_replace(utils::GetAbsoluteUrlAppRoot(), APPROOT, $sIconUrl); if ($sIconUrl == '') { // The icon does not exist, let's use a transparent one of the same size.