return $group_by_fields;
}
+ // grouping determines if we are grooping the project by either group_by1,
+ // group_by2, or group_by3 values passed in $options.
+ static function grouping($options) {
+ $grouping = ($options['group_by1'] != null && $options['group_by1'] != 'no_grouping') ||
+ ($options['group_by2'] != null && $options['group_by2'] != 'no_grouping') ||
+ ($options['group_by3'] != null && $options['group_by3'] != 'no_grouping');
+ return $grouping;
+ }
+
// groupingByUser determines if we are grouping a report by user.
static function groupingByUser($options) {
if ($options['group_by1'] == 'user' || $options['group_by2'] == 'user' || $options['group_by3'] == 'user') return true;
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.03.4334 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.03.4335 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
if ($request->isGet() && $user->isPluginEnabled('ps'))
ttReportHelper::putInSession($report_items);
-if ('no_grouping' != $group_by)
+if (ttReportHelper::grouping($options))
$subtotals = ttReportHelper::getSubtotals($options);
$totals = ttReportHelper::getTotals($options);