diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index cedcafbc6..c7c98dbd4 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,7 +1,7 @@ 7.6.4 - Brand new Survey system. Make sure to export your old results as they will not be imported, only the surveys themselves. - + - fixed #8837: When you move an asset to a new version, only the current version is moved, instead of all of them. 7.6.3 - improved performance of file uploads - changed format of created uploads locations, avoiding case sensitivity problems diff --git a/lib/WebGUI/AssetVersioning.pm b/lib/WebGUI/AssetVersioning.pm index 2dc8b6479..723d110e7 100644 --- a/lib/WebGUI/AssetVersioning.pm +++ b/lib/WebGUI/AssetVersioning.pm @@ -449,7 +449,7 @@ A new version tag id. sub setVersionTag { my $self = shift; my $tagId = shift; - $self->session->db->write("update assetData set tagId=? where assetId=?", [$tagId, $self->getId]); + $self->session->db->write("update assetData set tagId=? where assetId=? and tagId = ?", [$tagId, $self->getId,$self->get('tagId')]); $self->updateHistory("changed version tag to $tagId"); $self->purgeCache; }