correctif(champ.normalize): enleve les null chars uniquement si il y en a. sinon on rappel value=() avec nos champs surchargeant ce setter
This commit is contained in:
parent
72791bd5b6
commit
3732c079a7
1 changed files with 1 additions and 0 deletions
|
@ -262,6 +262,7 @@ class Champ < ApplicationRecord
|
|||
|
||||
def normalize
|
||||
return if value.nil?
|
||||
return if value.present? && !value.include?("\u0000")
|
||||
|
||||
self.value = value.delete("\u0000")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue