Skip to content

Commit

Permalink
ProcedureRevision#compare_type_de_champ: fix bug comparaison characte…
Browse files Browse the repository at this point in the history
…r_limit chaine vide vs nil
  • Loading branch information
Benoit-MINT committed Aug 28, 2024
1 parent e58324e commit 83a19e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/procedure_revision.rb
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def compare_type_de_champ(from_type_de_champ, to_type_de_champ, from_coordinates
to_type_de_champ.filename_for_attachement(:notice_explicative))
end
elsif to_type_de_champ.textarea?
if from_type_de_champ.character_limit != to_type_de_champ.character_limit
if from_type_de_champ.character_limit.presence != to_type_de_champ.character_limit.presence
changes << ProcedureRevisionChange::UpdateChamp.new(from_type_de_champ,
:character_limit,
from_type_de_champ.character_limit,
Expand Down

0 comments on commit 83a19e4

Please sign in to comment.