summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-04-06 18:52:00 -0400
committerFrederic Guillot <fred@kanboard.net>2015-04-06 18:52:00 -0400
commit96a1511346a190edc1d958a6ea8184d5486f94de (patch)
treefe2060c1b388c7abf35deda259d2611e559af5b6 /app/Model
parent13ea77f018cebbf0a3b0457d4806cd6b8b5614e1 (diff)
Fix postgres issue with time-off timetable
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/TimetableOff.php2
1 files changed, 1 insertions, 1 deletions
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,