From 72de621d77dc1e0fc21a2409d310d6dcdc3eee9e Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 22 Mar 2015 18:44:45 -0400 Subject: Add budget graph --- app/Controller/Budget.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Controller') diff --git a/app/Controller/Budget.php b/app/Controller/Budget.php index b8279f19..2c56c79d 100644 --- a/app/Controller/Budget.php +++ b/app/Controller/Budget.php @@ -20,7 +20,7 @@ class Budget extends Base $project = $this->getProject(); $this->response->html($this->projectLayout('budget/index', array( - 'total' => $this->budget->getTotal($project['id']), + 'daily_budget' => $this->budget->getDailyBudgetBreakdown($project['id']), 'project' => $project, 'title' => t('Budget') ))); @@ -40,7 +40,7 @@ class Budget extends Base ->setMax(30) ->setOrder('start') ->setDirection('DESC') - ->setQuery($this->budget->getBreakdown($project['id'])) + ->setQuery($this->budget->getSubtaskBreakdown($project['id'])) ->calculate(); $this->response->html($this->projectLayout('budget/breakdown', array( -- cgit v1.2.3