foreach ($this->users as $key=>$user_item) {
$user_id = ttUserHelper::insert(array(
'team_id' => $this->team_id,
- 'role' => $user_item['ROLE'],
+ 'role_id' => $user_item['ROLE_ID'], // Note: NOT mapped value. Not implemented currently, need to fix.
'client_id' => $user_item['CLIENT_ID'], // Note: NOT mapped value, replaced in CLIENT handler.
'name' => $user_item['NAME'],
'login' => $user_item['LOGIN'],
$role_manager = ROLE_MANAGER;
$sql = "select t.name as team_name, u.id as manager_id, u.name as manager_name, u.login as manager_login, u.email as manager_email
from tt_teams t
- inner join tt_users u on (u.team_id = t.id and u.role = $role_manager)
+ inner join tt_users u on (u.team_id = t.id)
+ inner join tt_roles r on (r.id = u.role_id and r.rank = 512)
where t.id = $team_id";
$res = $mdb2->query($sql);
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.17.46.4083 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.17.47.4084 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
// Team created, now create a team manager.
$user_id = ttUserHelper::insert(array(
'team_id' => $team_id,
- 'role' => ROLE_MANAGER,
'role_id' => $role_id,
'name' => $cl_manager_name,
'login' => $cl_manager_login,
// Team created, now create a team manager.
$user_id = ttUserHelper::insert(array(
'team_id' => $team_id,
- 'role' => ROLE_MANAGER, // TODO: this is now out of sync (324 vs 512 for new role id). Work in progress.
'role_id' => $role_id,
'name' => $cl_manager_name,
'login' => $cl_manager_login,