fix(textarea): fix character limit option
This commit is contained in:
parent
471da7eb61
commit
fe041b4c6c
11 changed files with 70 additions and 48 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue