From: anuko Date: Wed, 10 Jan 2018 14:49:42 +0000 (+0000) Subject: Provided default value for parameter as per issue #47. X-Git-Tag: timetracker_1.19-1~1383 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=98f86b438c91861eed8d384a7e9ab27e97d7d8b7;p=timetracker.git Provided default value for parameter as per issue #47. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 3cff2af8..a6a31a1d 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.13.11.3737 | Copyright © Anuko | +  Anuko Time Tracker 1.13.12.3738 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/plugins/MonthlyQuota.class.php b/plugins/MonthlyQuota.class.php index a42b7824..8fff596b 100644 --- a/plugins/MonthlyQuota.class.php +++ b/plugins/MonthlyQuota.class.php @@ -53,7 +53,8 @@ class MonthlyQuota { } // get - obtains either a single month quota or an array of quotas for an entire year. - public function get($year, $month) { + // Month starts with 1 for January, not 0. + public function get($year, $month = null) { if (is_null($month)){ return $this->getMany($year); } diff --git a/quotas.php b/quotas.php index d846ae25..ac0998c5 100644 --- a/quotas.php +++ b/quotas.php @@ -93,7 +93,7 @@ if ($request->isPost()){ } } -// Returns monthly quotas where January is month 1, not 0. +// Get monthly quotas where for the entire year. $monthsData = $quota->get($selectedYear); $form = new Form('monthlyQuotasForm');