You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When :greater_than matcher is given in validates_numericality and the value is taken from model (f.e. column) client side validation doesn't consider it as viable varbiable and ommits this validation
how to reproduce:
add validation in your model, on integer :column_name, and add :another_column, also with integer value
validates_numericality of :column_name, greater_than_or_equal_to: :another_column_name
What should happen:
Validation should consider dynamic validation, as does simple form after form submit
What happens:
Validator ommits given value, and does not validate the field. If the value in model is specified as:
The text was updated successfully, but these errors were encountered:
MistarzJan
changed the title
When :greater_than matcher is given in validates_numericality and the value is taken from model (f.e. column) client side validation doesn't consider it as viable varbiable and ommits this validation
:greater_than validator with dynamic value is being ommited
Jun 14, 2021
MistarzJan
changed the title
:greater_than validator with dynamic value is being ommited
greater_than validator with dynamic value is being ommited
Jun 14, 2021
Thanks for a fast response!, I've seen that issue, however I was wondering if it still applies when value I'am comparing to is persisted? (in this case :another_column is already in my db and it's not writable by user)
When
:greater_than
matcher is given invalidates_numericality
and the value is taken from model (f.e. column) client side validation doesn't consider it as viable varbiable and ommits this validationhow to reproduce:
add validation in your model, on integer :column_name, and add :another_column, also with integer value
What should happen:
Validation should consider dynamic validation, as does simple form after form submit
What happens:
Validator ommits given value, and does not validate the field. If the value in model is specified as:
it works like a charm, however it does not help me in my usecase
System configuration*
6.0.3.4
Ruby version:
2.7.2
Client Side Validations version:
15.0
Client Side Validations Simple Form version:
13.0.0
Code snippet from your model of the validations*
The text was updated successfully, but these errors were encountered: