Merge pull request #7297 from tchak/fix-find-by-stable-id

bring back find_type_de_champ_by_stable_id old implementation
This commit is contained in:
Paul Chavard 2022-05-11 20:34:42 +02:00 committed by GitHub
commit 3d7356c2d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -393,7 +393,7 @@ class ProcedureRevision < ApplicationRecord
end
def find_type_de_champ_by_stable_id(stable_id)
types_de_champ.find_by(stable_id: stable_id)
types_de_champ.find_by(stable_id: stable_id) || types_de_champ_in_repetition.find_by(stable_id: stable_id)
end
def types_de_champ_in_repetition