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:
commit
3d7356c2d0
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ class ProcedureRevision < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_type_de_champ_by_stable_id(stable_id)
|
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
|
end
|
||||||
|
|
||||||
def types_de_champ_in_repetition
|
def types_de_champ_in_repetition
|
||||||
|
|
Loading…
Reference in a new issue