- $sql = "insert into tt_teams (name, address, currency $lockspec_f, lang $decimal_mark_f $date_format_f $time_format_f $week_start_f $plugins_f $tracking_mode_f $record_type_f)
+ $uncompleted_indicators = $fields['uncompleted_indicators'];
+ if ($uncompleted_indicators !== null) {
+ $uncompleted_indicators_f = ', uncompleted_indicators';
+ $uncompleted_indicators_v = ', ' . (int)$uncompleted_indicators;
+ } else {
+ $uncompleted_indicators_f = '';
+ $uncompleted_indicators_v = '';
+ }
+
+ $workday_hours = $fields['workday_hours'];
+ if ($workday_hours !== null) {
+ $workday_hours_f = ', workday_hours';
+ $workday_hours_v = ', ' . (int)$workday_hours;
+ } else {
+ $workday_hours_f = '';
+ $workday_hours_v = '';
+ }
+
+ $sql = "insert into tt_teams (name, address, currency $lockspec_f, lang $decimal_mark_f $date_format_f $time_format_f $week_start_f $plugins_f $tracking_mode_f $task_required_f $record_type_f $uncompleted_indicators_f $workday_hours_f)