Store revision in lock only if the object being locked is a DmsfFile #615

This commit is contained in:
COLA@Redmine.local 2017-02-13 21:11:01 +01:00
parent 8165631929
commit 65b64ca799

View File

@ -69,8 +69,7 @@ module RedmineDmsf
l.lock_scope = scope
l.user = User.current
l.expires_at = expire
# TODO: @carlolars
# l.revision = self.last_revision.id unless self.is_a?(DmsfFolder)
l.revision = self.last_revision.id if self.is_a?(DmsfFile)
l.save!
reload
locks.reload