Forward port fix for updating property cache on editSave with autoCommit

so that the asset does not lie about its autocommit status.
This commit is contained in:
Colin Kuskie 2009-07-08 04:29:27 +00:00
parent b89486d5f3
commit b7358fbceb
3 changed files with 26 additions and 14 deletions

View file

@ -536,7 +536,7 @@ Sets the versioning lock to "off" so that this piece of content may be edited on
sub unsetVersionLock {
my $self = shift;
$self->session->db->write("update asset set isLockedBy=NULL where assetId=".$self->session->db->quote($self->getId));
$self->session->db->write("update asset set isLockedBy=NULL where assetId=?",[$self->getId]);
$self->{_properties}{isLockedBy} = undef;
$self->updateHistory("unlocked");
$self->purgeCache;