$mdb2 = getConnection();
$sql = "select id, name from tt_clients
- where team_id = $user->team_id and (status = 0 or status = 1) order by name";
+ where team_id = $user->team_id and (status = 0 or status = 1) order by upper(name)";
$res = $mdb2->query($sql);
if (!is_a($res, 'PEAR_Error')) {
while ($val = $res->fetchRow()) {
var $time_format = null; // Time format.
var $week_start = 0; // Week start day.
var $tracking_mode = 0; // Tracking mode.
+ var $project_required = 0; // Whether project selection is required on time entires.
var $task_required = 0; // Whether task selection is required on time entires.
var $record_type = 0; // Record type (duration vs start and finish, or both).
var $uncompleted_indicators = 0; // Uncompleted time entry indicators (show nowhere or on users page).
$sql = "SELECT u.id, u.login, u.name, u.team_id, u.role, u.client_id, u.email, t.name as team_name,
t.address, t.currency, t.lang, t.decimal_mark, t.date_format, t.time_format, t.week_start,
- t.tracking_mode, t.task_required, t.record_type, t.uncompleted_indicators, t.plugins, t.lock_spec, t.workday_hours, t.custom_logo
+ t.tracking_mode, t.project_required, t.task_required, t.record_type, t.uncompleted_indicators,
+ t.plugins, t.lock_spec, t.workday_hours, t.custom_logo
FROM tt_users u LEFT JOIN tt_teams t ON (u.team_id = t.id) WHERE ";
if ($id)
$sql .= "u.id = $id";
$this->time_format = $val['time_format'];
$this->week_start = $val['week_start'];
$this->tracking_mode = $val['tracking_mode'];
+ $this->project_required = $val['project_required'];
$this->task_required = $val['task_required'];
$this->record_type = $val['record_type'];
$this->uncompleted_indicators = $val['uncompleted_indicators'];
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.11.44.3638 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.11.44.3639 | 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>
$cl_custom_format_time = $request->getParameter('format_time');
$cl_start_week = $request->getParameter('start_week');
$cl_tracking_mode = $request->getParameter('tracking_mode');
+ $cl_project_required = $request->getParameter('project_required');
$cl_task_required = $request->getParameter('task_required');
$cl_record_type = $request->getParameter('record_type');
$cl_uncompleted_indicators = $request->getParameter('uncompleted_indicators');
$cl_custom_format_time = $user->time_format;
$cl_start_week = $user->week_start;
$cl_tracking_mode = $user->tracking_mode;
+ $cl_project_required = $user->project_required;
$cl_task_required = $user->task_required;
$cl_record_type = $user->record_type;
$cl_uncompleted_indicators = $user->uncompleted_indicators;
$tracking_mode_options[MODE_PROJECTS] = $i18n->getKey('form.profile.mode_projects');
$tracking_mode_options[MODE_PROJECTS_AND_TASKS] = $i18n->getKey('form.profile.mode_projects_and_tasks');
$form->addInput(array('type'=>'combobox','name'=>'tracking_mode','style'=>'width: 150px;','data'=>$tracking_mode_options,'value'=>$cl_tracking_mode,'onchange'=>'handleTaskRequiredCheckbox()'));
+ $form->addInput(array('type'=>'checkbox','name'=>'project_required','value'=>$cl_project_required));
$form->addInput(array('type'=>'checkbox','name'=>'task_required','value'=>$cl_task_required));
// Prepare record type choices.
'time_format' => $cl_custom_format_time,
'week_start' => $cl_start_week,
'tracking_mode' => $cl_tracking_mode,
+ 'project_required' => $cl_project_required,
'task_required' => $cl_task_required,
'record_type' => $cl_record_type,
'uncompleted_indicators' => $cl_uncompleted_indicators,
// Dropdown for clients if the clients plugin is enabled.
if ($user->isPluginEnabled('cl') && !($user->isClient() && $user->client_id)) {
if ($user->canManageTeam() || ($user->isClient() && !$user->client_id))
- $client_list = ttClientHelper::getClients($user->team_id);
+ $client_list = ttClientHelper::getClients();
else
$client_list = ttClientHelper::getClientsForUser();
$form->addInput(array('type'=>'combobox',