Skip to content
This repository was archived by the owner on Aug 24, 2024. It is now read-only.

Commit 8c88b4c

Browse files
Bugfix: Make all day events display correctly in iCal
1 parent f62492d commit 8c88b4c

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

html/js/Cases.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

html/js/cases.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

html/js/casesEvents.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,16 @@ $('.case_detail_panel_tools_right button.new_event').live('click', function() {
133133
//submit the form
134134
var caseId = $(this).closest('.case_detail_panel').data('CaseNumber');
135135
var target = $(this).closest('.case_detail_panel_casenotes');
136+
var allDay = false;
137+
if (eventForm.find('input[name = "all_day"]').is(':checked')){
138+
allDay = true;
139+
}
136140
$.post('lib/php/data/cases_events_process.php', {
137141
'task': eventForm.find('input[name = "task"]').val(),
138142
'where': eventForm.find('input[name = "where"]').val(),
139143
'start': eventForm.find('input[name = "start"]').val(),
140144
'end': eventForm.find('input[name = "end"]').val(),
141-
'all_day': eventForm.find('input[name = "all_day"]').val(),
145+
'all_day': allDay,
142146
'notes': eventForm.find('textarea[name = "notes"]').val(),
143147
'responsibles': resps,
144148
'action': 'add',

lib/php/data/cases_events_process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function flatten_array($mArray) {
5656

5757
if (isset($_POST['all_day']))
5858
{
59-
if ($_POST['all_day'] == 'on')
59+
if ($_POST['all_day'] == 'true')
6060
{
6161
$all_day = '1';
6262
}

0 commit comments

Comments
 (0)