From 98ac85c09871922875ebf88a53b5aa40fba74c87 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Mon, 22 Aug 2011 16:42:28 +0000 Subject: [PATCH] Added the display of the total count of objects above 'group by' blocks. SVN:trunk[1492] --- application/displayblock.class.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/displayblock.class.inc.php b/application/displayblock.class.inc.php index 8c17da11b1..29809d9801 100644 --- a/application/displayblock.class.inc.php +++ b/application/displayblock.class.inc.php @@ -347,6 +347,7 @@ class DisplayBlock $sGroupByField = $aExtraParams['group_by']; $aGroupBy = array(); $sLabels = array(); + $iTotalCount = $this->m_oSet->Count(); while($oObj = $this->m_oSet->Fetch()) { if (isset($aExtraParams['group_by_expr'])) @@ -373,6 +374,8 @@ class DisplayBlock 'group' => array('label' => MetaModel::GetLabel($this->m_oFilter->GetClass(), $sGroupByField), 'description' => ''), 'value' => array('label'=> Dict::S('UI:GroupBy:Count'), 'description' => Dict::S('UI:GroupBy:Count+')) ); + $sFormat = isset($aExtraParams['format']) ? $aExtraParams['format'] : 'UI:Pagination:HeaderNoSelection'; + $sHtml .= $oPage->GetP(Dict::Format($sFormat, $iTotalCount)); $sHtml .= $oPage->GetTable($aAttribs, $aData); } else