projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adjusted task_add.php and task_edit.php to operate with subgroups.
[timetracker.git]
/
user_edit.php
diff --git
a/user_edit.php
b/user_edit.php
index
8f588db
..
26dfa01
100644
(file)
--- a/
user_edit.php
+++ b/
user_edit.php
@@
-40,7
+40,7
@@
if (!ttAccessAllowed('manage_users')) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
-$user_id = (int)
$request->getParameter('id');
+$user_id = (int)$request->getParameter('id');
$user_details = $user->getUser($user_id);
if (!$user_details) {
header('Location: access_denied.php');
$user_details = $user->getUser($user_id);
if (!$user_details) {
header('Location: access_denied.php');
@@
-49,9
+49,9
@@
if (!$user_details) {
// End of access checks.
if ($user->isPluginEnabled('cl'))
// End of access checks.
if ($user->isPluginEnabled('cl'))
- $clients = ttTeamHelper::getActiveClients($user->
team_id
);
+ $clients = ttTeamHelper::getActiveClients($user->
getGroup()
);
-$projects = ttTeamHelper::getActiveProjects($user->
team_id
);
+$projects = ttTeamHelper::getActiveProjects($user->
getGroup()
);
$assigned_projects = array();
if ($request->isPost()) {
$assigned_projects = array();
if ($request->isPost()) {
@@
-82,7
+82,7
@@
if ($request->isPost()) {
$cl_name = $user_details['name'];
$cl_login = $user_details['login'];
$cl_email = $user_details['email'];
$cl_name = $user_details['name'];
$cl_login = $user_details['login'];
$cl_email = $user_details['email'];
- $cl_rate = str_replace('.', $user->
decimal_mark
, $user_details['rate']);
+ $cl_rate = str_replace('.', $user->
getDecimalMark()
, $user_details['rate']);
$cl_role_id = $user_details['role_id'];
$cl_client_id = $user_details['client_id'];
$cl_status = $user_details['status'];
$cl_role_id = $user_details['role_id'];
$cl_client_id = $user_details['client_id'];
$cl_status = $user_details['status'];