Skip to content

Commit 68da342

Browse files
committedAug 30, 2011
Don't commit an empty version tag when extending calender recurrences. Fixes bug #12240.
1 parent d76ff6e commit 68da342

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
 

‎docs/changelog/7.x.x.txt

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- fixed #12227: Corrected AssetReport such that OrderBy works correctly.
66
- fixed #12238: Old template attachement in search template slows down sites
77
- fixed #12239: Still get cart error message after removing extra recurring items from the cart
8+
- fixed #12240: Empty Extend Calendar Recurrance version tags
89

910
7.10.22
1011
- rfe #12223: Add date type to content profiling (metadata)

‎lib/WebGUI/Workflow/Activity/ExtendCalendarRecurrences.pm

+7-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,13 @@ sub processRecurrence {
194194
$event->generateRecurrence($d);
195195
}
196196
197-
$versionTag->commit;
197+
##If nothing needed to happen, then don't keep the tag around.
198+
if ($versionTag->getAssetCount > 0) {
199+
$versionTag->commit;
200+
}
201+
else {
202+
$versionTag->rollback;
203+
}
198204
return $time_limit ? 1 : 0;
199205
} ## end sub processRecurrence
200206

0 commit comments

Comments
 (0)