Fix postgres issue with time-off timetable
This commit is contained in:
parent
13ea77f018
commit
96a1511346
|
|
@ -81,7 +81,7 @@ class TimetableOff extends Base
|
||||||
$values = array(
|
$values = array(
|
||||||
'user_id' => $user_id,
|
'user_id' => $user_id,
|
||||||
'date' => $date,
|
'date' => $date,
|
||||||
'all_day' => $all_day,
|
'all_day' => (int) $all_day, // Postgres fix
|
||||||
'start' => $all_day ? '' : $start,
|
'start' => $all_day ? '' : $start,
|
||||||
'end' => $all_day ? '' : $end,
|
'end' => $all_day ? '' : $end,
|
||||||
'comment' => $comment,
|
'comment' => $comment,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue