Do not extend recurrent for events in the trash. Do not extend them in the clipboard either, since it'll either make a mess in the clipboard or pop them up on the calendar automatically. Fixes bug #11995
This commit is contained in:
parent
b911f05125
commit
a083737ab3
3 changed files with 41 additions and 2 deletions
|
|
@ -170,6 +170,11 @@ sub processRecurrence {
|
|||
$self->session->log->warn("Unable to instanciate event with assetId $eventId");
|
||||
return 0;
|
||||
}
|
||||
##Ignore assets in the trash. Same with assets in the clipboard since they would not be
|
||||
##put into the clipboard.
|
||||
if ($event->get('state') ne 'published') {
|
||||
return 0;
|
||||
}
|
||||
my $recur = $event->getRecurrence;
|
||||
|
||||
my $versionTag = WebGUI::VersionTag->create($self->session, {name => 'Extend Calendar Recurrence for assetId '.$event->getId, });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue