navtable/navtableforms — pull request #4 by fpuga (2012-08-16 17:04:57+00:00)
Title: Validation Rules (except Mandatory) should return valid when the value is empty

My user case is that i have some fields that can be empty, but in case that they are not empty they must be integer positive.

Using integer positive as the rule behaves now, makes that the user has to fill a value.

I think that the best approach is that the rules (except the mandatory rule) return valid when the value is empty.

BTW i push in this commit two new tests for IntegerPositiveRule and DoublePositiveRule, but i change the behavior for DateRule also.