$time_format_part = '';
$week_start_part = '';
$tracking_mode_part = '';
- $task_required_part = ' , task_required = '.$mdb2->quote($fields['task_required']);
+ $task_required_part = ' , task_required = '.intval($fields['task_required']);
$record_type_part = '';
$uncompleted_indicators_part = '';
$plugins_part = '';
$this->time_format = $val['time_format'];
$this->week_start = $val['week_start'];
$this->tracking_mode = $val['tracking_mode'];
- $this->task_required = intval($val['task_required']);
+ $this->task_required = $val['task_required'];
$this->record_type = $val['record_type'];
$this->uncompleted_indicators = $val['uncompleted_indicators'];
$this->team = $val['team_name'];
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.11.44.3633 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.11.44.3634 | 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>
setChange("ALTER TABLE tt_expense_items modify `name` text NOT NULL");
setChange("ALTER TABLE `tt_teams` ADD `uncompleted_indicators` SMALLINT(2) NOT NULL DEFAULT '0' AFTER `record_type`");
setChange("CREATE TABLE `tt_predefined_expenses` (`id` int(11) NOT NULL auto_increment, `team_id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `cost` decimal(10,2) default '0.00', PRIMARY KEY (`id`))");
- setChange("ALTER TABLE `tt_teams` ADD `task_required` smallint(2) default NULL AFTER `tracking_mode`");
+ setChange("ALTER TABLE `tt_teams` ADD `task_required` smallint(2) NOT NULL DEFAULT '0' AFTER `tracking_mode`");
}
// The update_clients function updates projects field in tt_clients table.
`time_format` varchar(20) NOT NULL default '%H:%M', # time format
`week_start` smallint(2) NOT NULL DEFAULT '0', # Week start day, 0 == Sunday.
`tracking_mode` smallint(2) NOT NULL DEFAULT '1', # tracking mode ("time", "projects" or "projects and tasks")
- `task_required` smallint(2) default NULL, # whether a task selection is required or optional
+ `task_required` smallint(2) NOT NULL DEFAULT '0', # whether a task selection is required or optional
`record_type` smallint(2) NOT NULL DEFAULT '0', # time record type ("start and finish", "duration", or both)
`uncompleted_indicators` smallint(2) NOT NULL DEFAULT '0', # whether to show indicators for users with uncompleted time entries
`plugins` varchar(255) default NULL, # a list of enabled plugins for team