bring back find_type_de_champ_by_stable_id old implementation

This commit is contained in:
Paul Chavard 2022-05-11 20:29:01 +02:00
parent 24b37c230d
commit edf0cbf320

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