From fc9e1152bf828600a78d754e5682710762fea487 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 1 Feb 2010 17:01:24 -0800 Subject: [PATCH] Autocommit tags created when making shortcuts in the Gallery (cross publishing). Fixes bug #11378 --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/File/GalleryFile.pm | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 7ceb28152..25b9b8c1d 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -11,6 +11,7 @@ - fixed: Due to a typo France was not considered part of the EU by the EU TaxDriver. ( Martin Kamerbeek / Oqapi ) - fixed #11292: Made search less sticky - fixed #11377: Normal users can delete revisions in wiki + - fixed #11378: Cross publishing gallery files does not auto commit 7.8.10 - fixed #11332: Pagination in webgui.org forum urls diff --git a/lib/WebGUI/Asset/File/GalleryFile.pm b/lib/WebGUI/Asset/File/GalleryFile.pm index 5d8748ce5..2c184d552 100644 --- a/lib/WebGUI/Asset/File/GalleryFile.pm +++ b/lib/WebGUI/Asset/File/GalleryFile.pm @@ -562,6 +562,13 @@ sub makeShortcut { $shortcut->setOverride( $overrides ); } + if (WebGUI::VersionTag->autoCommitWorkingIfEnabled($session, { + allowComments => 1, + returnUrl => $self->getUrl, + }) eq 'redirect') { + return 'redirect'; + }; + return $shortcut; }