fix(textarea): fix character limit option

This commit is contained in:
Paul Chavard 2023-04-28 23:28:13 +02:00
parent 471da7eb61
commit fe041b4c6c
11 changed files with 70 additions and 48 deletions

View file

@ -378,11 +378,11 @@ class ProcedureRevision < ApplicationRecord
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
if from_type_de_champ.character_limit != to_type_de_champ.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)
:character_limit,
from_type_de_champ.character_limit,
to_type_de_champ.character_limit)
end
end
changes