From 96a1511346a190edc1d958a6ea8184d5486f94de Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 6 Apr 2015 18:52:00 -0400 Subject: Fix postgres issue with time-off timetable --- app/Model/TimetableOff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Model') diff --git a/app/Model/TimetableOff.php b/app/Model/TimetableOff.php index aa064f05..e4fe32d2 100644 --- a/app/Model/TimetableOff.php +++ b/app/Model/TimetableOff.php @@ -81,7 +81,7 @@ class TimetableOff extends Base $values = array( 'user_id' => $user_id, 'date' => $date, - 'all_day' => $all_day, + 'all_day' => (int) $all_day, // Postgres fix 'start' => $all_day ? '' : $start, 'end' => $all_day ? '' : $end, 'comment' => $comment, -- cgit v1.2.3