When you move an asset to a new version, only the current version is moved, instead of all of them.

This commit is contained in:
Kaleb Murphy 2008-11-12 15:51:23 +00:00
parent 48b4ba1fc8
commit d9c050423f
2 changed files with 2 additions and 2 deletions

View file

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