diff --git a/module/my/view/todo.html.php b/module/my/view/todo.html.php index 38ba09613f..7b7cce7779 100644 --- a/module/my/view/todo.html.php +++ b/module/my/view/todo.html.php @@ -19,8 +19,13 @@ user->account}&status=undone"; - $label = $period == 'all' ? "$label {$todoCount}" : "$label"; - $active = $period == $type ? 'btn-active-text' : ''; + $label = "$label"; + $active = ''; + if($period == $type) + { + $active = 'btn-active-text'; + $label .= " {$pager->recTotal}"; + } echo html::a(inlink('todo', $vars), $label, '', "class='btn btn-link $active' id='{$period}'") ?> diff --git a/module/product/control.php b/module/product/control.php index b6a3d38c6b..e0797ef202 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -204,7 +204,6 @@ class product extends control $this->view->storyCases = $storyCases; $this->view->param = $param; $this->view->products = $this->products; - $this->view->allCount = $this->story->getCount($productID); $this->display(); } @@ -516,7 +515,6 @@ class product extends control $this->view->param = $param; $this->view->pager = $pager; $this->view->dateGroups = $this->action->buildDateGroup($actions, $direction); - $this->view->allCount = $this->action->getCount('product', $productID); $this->view->direction = $direction; $this->display(); } diff --git a/module/product/view/browse.html.php b/module/product/view/browse.html.php index d3f912a6de..b11e313c33 100644 --- a/module/product/view/browse.html.php +++ b/module/product/view/browse.html.php @@ -47,7 +47,7 @@ echo '