refactor(dossier): champs -> champs_public

This commit is contained in:
Paul Chavard 2022-11-10 21:21:14 +00:00
parent 68e0abc15f
commit e6288c39f2
62 changed files with 227 additions and 223 deletions

View file

@ -139,7 +139,11 @@ module DossierRebaseConcern
champ = target_coordinate
.type_de_champ
.build_champ(params)
parent.champs << champ
if parent.is_a?(Dossier)
parent.champs_public << champ
else
parent.champs << champ
end
end
def delete_champs_for_revision(stable_id)

View file

@ -287,7 +287,7 @@ module TagsSubstitutionConcern
tokens = parse_tags(text)
tags_and_datas = [
[champ_public_tags(dossier: dossier), dossier.champs],
[champ_public_tags(dossier: dossier), dossier.champs_public],
[champ_private_tags(dossier: dossier), dossier.champs_private],
[dossier_tags, dossier],
[ROUTAGE_TAGS, dossier],