projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduced ttAdmin class for admin tasks.
[timetracker.git]
/
admin_team_delete.php
diff --git
a/admin_team_delete.php
b/admin_team_delete.php
index
6958ca0
..
b2b462c
100644
(file)
--- a/
admin_team_delete.php
+++ b/
admin_team_delete.php
@@
-47,7
+47,10
@@
$form->addInput(array('type'=>'submit','name'=>'btn_cancel','value'=>$i18n->getK
if ($request->isPost()) {
if ($request->getParameter('btn_delete')) {
if ($request->isPost()) {
if ($request->getParameter('btn_delete')) {
- if (ttTeamHelper::markDeleted($team_id)) {
+ import('ttAdmin');
+ $admin = new ttAdmin();
+ $result = $admin->markGroupDeleted($team_id);
+ if ($result) {
header('Location: admin_teams.php');
exit();
} else
header('Location: admin_teams.php');
exit();
} else