summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-03-22 18:44:45 -0400
committerFrederic Guillot <fred@kanboard.net>2015-03-22 18:44:45 -0400
commit72de621d77dc1e0fc21a2409d310d6dcdc3eee9e (patch)
treeccfe5d7c21961a60c60938c41dd30c16a6ecfd5d /app/Controller
parent373537efe2f893f91f11c04436073bbb2c2732dd (diff)
Add budget graph
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/Budget.php4
1 files changed, 2 insertions, 2 deletions
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(