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:
parent
48b4ba1fc8
commit
d9c050423f
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue