Validation of database values throws validation errors
Validation triggers an error when a value coming from db violates the validation rule.
This happens during a clean GET request, when parameters from user are missing and the form is compiled with database values.
#1 Updated by Davide Principi almost 10 years ago
Only input data from the User must be validated. Database values can skip the validation step: if they are invalid, the problem will be reported on the next submit.
Solution: keep track of user-submitted parameters and perform validation only on these.