Handle assets that can't be instanciated in ExtendCalendarRecurrences. Fixes bug #11956.
This commit is contained in:
parent
0acdcbc52b
commit
ce7a7394b5
3 changed files with 6 additions and 1 deletions
|
|
@ -165,6 +165,10 @@ sub processRecurrence {
|
|||
my ( $self, $recurId, $timeLimit ) = @_;
|
||||
my $eventId = $self->findLastEventId($recurId);
|
||||
my $event = WebGUI::Asset::Event->new( $self->session, $eventId );
|
||||
if (! $event) {
|
||||
$self->session->log->warn("Unable to instanciate event with assetId $eventId");
|
||||
return 0;
|
||||
}
|
||||
my $recur = $event->getRecurrence;
|
||||
|
||||
my $start = $event->getDateTimeStart->truncate(to => 'day');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue