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 ); } }