Bug with groups/validation
Archived from the Xataface Users forum.
Gandalf — Wed Jul 12, 2006 1:40 am
This is Dataface 0.5.4 under XAMPP on Windows XP SP2.
Attributes bearing validators, e.g.,
validators:required = true
validators:minlength = 1
will not get validated if they are contained in a group.
To reproduce:
- Define a table with two attributes foo and bar
- Define validators for foo and bar
- Put foo into a group FooGroup, bar remains ungrouped
- Edit a record
- Leaving foo empty will be allowed, leaving bar empty not.
–gandalf.
shannah — Wed Jul 12, 2006 7:27 am
Thanks for the bug report. For future bug reports, please add them to the issue tracker at http://framework.weblite.ca/development/issue-tracker/.
This particular bug has been fixed in 0.6… i didn’t realize I was going to take so long to release 0.6 so I didn’t fix it in 0.5.x, because the fix was a little bit involved.