Closed (fixed)
Project:
Open Atrium
Version:
7.x-2.12
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2014 at 08:39 UTC
Updated:
10 Mar 2014 at 21:30 UTC
Jump to comment: Most recent
Hello!
Just encountered an issue: When creating one event with start date and end date in two different months, where the event date formatter would not display any output.
The reason is obviously the if-statement in oa_events.module (line 205). When we comment it out, everything works out fine.
To reproduce - cerate new event with start date in february and end date in march - the formatter does not display, neither in the node nor in the views using the formatter.
As this is NOT a multidate event we need to know, if there is a real reason for this if statement.
if ($dates['start']['month'] == $dates['end']['month']) {
// For now always use the start date. We may add multi-day event to the
// widget at some point in the future.
$day = $dates['start']['day'];
$element[0] = array(
'#markup' => theme('oa_event_date', array('month' => $dates['start']['month'], 'day' => $day)),
);
}
Comments
Comment #1
mpotter commentedGood catch. Fixed in commit 4fc7428 of oa_events.