Fixed bug where dates from previous years were showing up on the calendar
This commit is contained in:
parent
6bd432e569
commit
b08a362bd8
1 changed files with 1 additions and 1 deletions
|
|
@ -420,7 +420,7 @@ sub www_view {
|
||||||
# get event information
|
# get event information
|
||||||
my $query = "select * from EventsCalendar_event where ";
|
my $query = "select * from EventsCalendar_event where ";
|
||||||
$query .= " wobjectId=".$_[0]->get("wobjectId")." and " unless ($_[0]->get("isMaster"));
|
$query .= " wobjectId=".$_[0]->get("wobjectId")." and " unless ($_[0]->get("isMaster"));
|
||||||
$query .= " (endDate>=$monthStart or endDate<=$monthEnd) and (startDate>=$monthStart or startDate<=$monthEnd) order by startDate,endDate";
|
$query .= " (endDate>=$monthStart and endDate<=$monthEnd) and (startDate>=$monthStart and startDate<=$monthEnd) order by startDate,endDate";
|
||||||
my %events;
|
my %events;
|
||||||
my %previous;
|
my %previous;
|
||||||
my $sth = WebGUI::SQL->read($query);
|
my $sth = WebGUI::SQL->read($query);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue