Skip to content

Commit

Permalink
Don't commit an empty version tag when extending calender recurrences…
Browse files Browse the repository at this point in the history
…. Fixes bug #12240.
  • Loading branch information
perlDreamer committed Aug 30, 2011
1 parent d76ff6e commit 68da342
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog/7.x.x.txt
Expand Up @@ -5,6 +5,7 @@
- fixed #12227: Corrected AssetReport such that OrderBy works correctly.
- fixed #12238: Old template attachement in search template slows down sites
- fixed #12239: Still get cart error message after removing extra recurring items from the cart
- fixed #12240: Empty Extend Calendar Recurrance version tags

7.10.22
- rfe #12223: Add date type to content profiling (metadata)
Expand Down
8 changes: 7 additions & 1 deletion lib/WebGUI/Workflow/Activity/ExtendCalendarRecurrences.pm
Expand Up @@ -194,7 +194,13 @@ sub processRecurrence {
$event->generateRecurrence($d);
}
$versionTag->commit;
##If nothing needed to happen, then don't keep the tag around.
if ($versionTag->getAssetCount > 0) {
$versionTag->commit;
}
else {
$versionTag->rollback;
}
return $time_limit ? 1 : 0;
} ## end sub processRecurrence
Expand Down

0 comments on commit 68da342

Please sign in to comment.