Change the core to use newById instead of new.

This commit is contained in:
Colin Kuskie 2010-05-09 14:30:47 -07:00
parent 04ee8f0949
commit 0bef2b2839
4 changed files with 4 additions and 4 deletions

View file

@ -164,7 +164,7 @@ exhausted the recurrence, false otherwise.
sub processRecurrence {
my ( $self, $recurId, $timeLimit ) = @_;
my $eventId = $self->findLastEventId($recurId);
my $event = WebGUI::Asset::Event->new( $self->session, $eventId );
my $event = WebGUI::Asset::Event->newById( $self->session, $eventId );
my $recur = $event->getRecurrence;
my $start = $event->getDateTimeStart->truncate(to => 'day');