Open milo opened 7 years ago
Well, I'd like the form be linkable, so only a get method would be solution, am I right?
Oh, I see, yeah, there should be "validation", but it will be still possible to pass invalid value from url - are you ok with it?
It's OK. IMHO important is, that datasource callback does not obtain invalid filter.
With newer nette/forms (I use v3.1.3) warning is emmited:
User Warning
Nette\Forms\Container::getValues() invoked but the form is not valid.
The filter values are passed to datasource callback even the form is invalid. It can be problem when sanitized value is expected, let's say MAC or IP address. Not sure how to change the behaviour, maybe do not redirect and do not pass filter values.