From b6ec0316f9dd1d1fcd26b8b8b6744c04d2e642c3 Mon Sep 17 00:00:00 2001 From: Martin Kamerbeek Date: Fri, 12 Jun 2009 09:27:35 +0000 Subject: [PATCH] Fixed a bug which caused empty version tags to not be deleted because of a wronhg method call. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Operation/VersionTag.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index eb5eb8922..c024159ed 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,5 @@ 7.7.11 + - Fixed a bug where empty version tags were not deleted. (Martin Kamerbeek / Oqapi) 7.7.10 - Made a change to LDAP auth that adds an OR to that query so that it also searches for a row with fieldData REGEXP '^uid=(value-from-ldap-directory-server),'. (Wes Morgan) diff --git a/lib/WebGUI/Operation/VersionTag.pm b/lib/WebGUI/Operation/VersionTag.pm index bc0a95341..0cc2c544d 100644 --- a/lib/WebGUI/Operation/VersionTag.pm +++ b/lib/WebGUI/Operation/VersionTag.pm @@ -665,7 +665,7 @@ sub www_manageRevisionsInTag { # If no revisions remain, delete the version tag if ( $tag->getRevisionCount <= 0 ) { - $tag->delete; + $tag->rollback; return www_manageVersions( $session ); } } @@ -693,7 +693,7 @@ sub www_manageRevisionsInTag { # If no revisions remain, delete the version tag if ( $tag->getRevisionCount <= 0 ) { - $tag->delete; + $tag->rollback; return www_manageVersions( $session ); } }