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 on totals only config option for Work units plugin.
[timetracker.git]
/
locking.php
diff --git
a/locking.php
b/locking.php
index
8aae756
..
4359f21
100644
(file)
--- a/
locking.php
+++ b/
locking.php
@@
-28,7
+28,6
@@
require_once('initialize.php');
import('form.Form');
require_once('initialize.php');
import('form.Form');
-import('ttTeamHelper');
// Access checks.
if (!ttAccessAllowed('manage_advanced_settings')) {
// Access checks.
if (!ttAccessAllowed('manage_advanced_settings')) {
@@
-51,9
+50,7
@@
if ($request->isPost()) {
if (!ttValidCronSpec($cl_lock_spec)) $err->add($i18n->get('error.field'), $i18n->get('label.schedule'));
if ($err->no()) {
if (!ttValidCronSpec($cl_lock_spec)) $err->add($i18n->get('error.field'), $i18n->get('label.schedule'));
if ($err->no()) {
- if (ttTeamHelper::update($user->group_id, array(
- 'name' => $user->group,
- 'lock_spec' => $cl_lock_spec))) {
+ if ($user->updateGroup(array('lock_spec' => $cl_lock_spec))) {
header('Location: group_edit.php');
exit();
} else {
header('Location: group_edit.php');
exit();
} else {