projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Work in progress switching to ttUser::isPluginEnabled().
[timetracker.git]
/
time_delete.php
diff --git
a/time_delete.php
b/time_delete.php
index
538d9c7
..
273cba3
100644
(file)
--- a/
time_delete.php
+++ b/
time_delete.php
@@
-38,12
+38,6
@@
if (!ttAccessCheck(right_data_entry)) {
exit();
}
exit();
}
-// Use Custom Fields plugin if we have one.
-// if (file_exists("plugins/CustomFields.class.php")) {
-// require_once("plugins/CustomFields.class.php");
-// $custom_fields = new CustomFields($user->team_id);
-// }
-
$cl_id = $request->getParameter('id');
$time_rec = ttTimeHelper::getRecord($cl_id, $user->getActiveUser());
$cl_id = $request->getParameter('id');
$time_rec = ttTimeHelper::getRecord($cl_id, $user->getActiveUser());
@@
-89,7
+83,7
@@
if ($request->isPost()) {
header('Location: time.php');
exit();
}
header('Location: time.php');
exit();
}
-} //
POST
+} //
isPost
$form = new Form('timeRecordForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));
$form = new Form('timeRecordForm');
$form->addInput(array('type'=>'hidden','name'=>'id','value'=>$cl_id));