Revert "Revert "Merge pull request #8844 from demarches-simplifiees/feat/7739""

This reverts commit 909d726429.
This commit is contained in:
Paul Chavard 2023-04-28 18:46:44 +02:00
parent 96fbbbbbb9
commit 471da7eb61
12 changed files with 114 additions and 26 deletions

View file

@ -377,6 +377,13 @@ class ProcedureRevision < ApplicationRecord
from_type_de_champ.piece_justificative_template_filename,
to_type_de_champ.piece_justificative_template_filename)
end
elsif to_type_de_champ.textarea?
if from_type_de_champ.textarea_character_limit != to_type_de_champ.textarea_character_limit
changes << ProcedureRevisionChange::UpdateChamp.new(from_type_de_champ,
:textarea_character_limit,
from_type_de_champ.textarea_character_limit,
to_type_de_champ.textarea_character_limit)
end
end
changes
end