CMS MADE SIMPLE FORGE

CGCalendar

 

[#8939] displayforday option not working (should show all events today in upcominglist even if already started)

avatar
Created By: Paul Baker (paulbaker)
Date Submitted: Fri Feb 15 13:37:29 -0500 2013

Assigned To:
Version: 1.10.2
CMSMS Version: None
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
displayforday option not working (should show all events today in upcominglist even if already started)
Detailed Description:
When you add displayforday to an upcominglist, the system should show ALL events
for today, even if they have already started.  Here is an example of a call:

{cms_module module="CGCalendar" display="upcominglist" limit="5"
upcominglisttemplate="StEdwardsUpcomingHome" displayforday="true"}

However, in my system (PHP 5.3.18) it shows an event list starting with the very
oldest events.

I believe the bug is in function.displayupcominglist.php.  The line

$start = mktime(00,01);

does not set $start to the right value.  If you change that line to

$start = "'" . date('Y-m-d 00:00:00') . "'";

it works correctly, showing an upcoming list but including events that have
already started today.

See this forum post for further discussion:

http://forum.cmsmadesimple.org/viewtopic.php?f=7&t=63610


History

Comments
avatar
Date: 2013-02-15 15:31
Posted By: Cebalraj (Cebalraj)

Confirm: I have the same problem.
      
avatar
Date: 2013-10-14 11:26
Posted By: Robert Campbell (calguy1000)

fixed in svn.
      
Updates

Updated: 2014-05-02 14:39
state: Open => Closed

Updated: 2013-10-14 11:26
resolution_id: => 7
cmsms_version_id: 29887 => -1