projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a capability to add new records from week view.
[timetracker.git]
/
report.php
diff --git
a/report.php
b/report.php
index
775a5dd
..
a18ff1f
100644
(file)
--- a/
report.php
+++ b/
report.php
@@
-39,7
+39,7
@@
if (!ttAccessCheck(right_view_reports)) {
}
// Use custom fields plugin if it is enabled.
}
// Use custom fields plugin if it is enabled.
-if (
in_array('cf', explode(',', $user->plugins)
)) {
+if (
$user->isPluginEnabled('cf'
)) {
require_once('plugins/CustomFields.class.php');
$custom_fields = new CustomFields($user->team_id);
$smarty->assign('custom_fields', $custom_fields);
require_once('plugins/CustomFields.class.php');
$custom_fields = new CustomFields($user->team_id);
$smarty->assign('custom_fields', $custom_fields);
@@
-64,7
+64,7
@@
if ($client_id && $bean->getAttribute('chinvoice') && ('no_grouping' == $bean->g
}
}
}
}
-if ($request->
getMethod() == 'POST'
) {
+if ($request->
isPost()
) {
foreach($_POST as $key => $val) {
if ('log_id_' == substr($key, 0, 7))
$time_log_ids[] = substr($key, 7);
foreach($_POST as $key => $val) {
if ('log_id_' == substr($key, 0, 7))
$time_log_ids[] = substr($key, 7);
@@
-80,7
+80,7
@@
if ($request->getMethod() == 'POST') {
// Re-display this form.
header('Location: report.php');
exit();
// Re-display this form.
header('Location: report.php');
exit();
-} //
POST
+} //
isPost
$group_by = $bean->getAttribute('group_by');
$group_by = $bean->getAttribute('group_by');