fix(Champs::DecimalNumberChamp): validates Champs::DecimalNumberChamp respecting it's validation context
This commit is contained in:
parent
b07bbfa455
commit
04f3b6a844
2 changed files with 22 additions and 11 deletions
|
@ -14,7 +14,7 @@ class Champs::DecimalNumberChamp < Champ
|
|||
message: -> (object, _data) {
|
||||
"« #{object.libelle} » " + object.errors.generate_message(:value, :not_a_number)
|
||||
}
|
||||
}
|
||||
}, if: -> { validate_champ_value? || validation_context == :prefill }
|
||||
|
||||
def for_export
|
||||
processed_value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue