Fix linked protocol without linked_at [SCI-8255] (#5249)

This commit is contained in:
ajugo 2023-04-04 11:25:02 +02:00 committed by GitHub
parent 60c5646f31
commit cd2a1be9e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -348,6 +348,8 @@ class Protocol < ApplicationRecord
end
def newer_than_parent?
return linked? if linked_at.nil?
linked? && updated_at > linked_at
end