mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-24 15:54:00 +08:00
Fix linked protocol without linked_at [SCI-8255] (#5249)
This commit is contained in:
parent
60c5646f31
commit
cd2a1be9e0
1 changed files with 2 additions and 0 deletions
|
@ -348,6 +348,8 @@ class Protocol < ApplicationRecord
|
|||
end
|
||||
|
||||
def newer_than_parent?
|
||||
return linked? if linked_at.nil?
|
||||
|
||||
linked? && updated_at > linked_at
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue