missing session variables from ->new found via code analysis
This commit is contained in:
parent
4085c7baf4
commit
35c4ad353d
12 changed files with 36 additions and 28 deletions
|
|
@ -218,7 +218,7 @@ sub view {
|
|||
my ($garbage, $end) = $self->session->datetime->dayStartEnd($self->get("eventEndDate"));
|
||||
my $sth = $self->session->db->read("select assetId from EventsCalendar_event where ((eventStartDate >= $start and eventStartDate <= $end) or (eventEndDate >= $start and eventEndDate <= $end)) and assetId<>".$self->session->db->quote($self->getId));
|
||||
while (my ($assetId) = $sth->array) {
|
||||
my $asset = WebGUI::Asset::Event->new($assetId);
|
||||
my $asset = WebGUI::Asset::Event->new($self->session, $assetId);
|
||||
# deal with multiple versions of the same event with conflicting dates
|
||||
next unless (($asset->get("eventStartDate") >= $start && $asset->get("eventStartDate") <= $end) || ($asset->get("eventEndDate") >= $start && $asset->get("eventEndDate") <= $end));
|
||||
push(@others,{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue