isset/required validation bug |
[eluser]mjijackson[/eluser]
This bug is discussed on this thread. In that thread, some users found a clever workaround for what is actually a bug in the code. When validation runs, it short-circuits any fields that have an 'isset' or 'required' rule if they are in fact not set. However, in the short-circuit, it neglects to set the error message for that field. This can be remedied with the following: Code: $error = $field . '_error'; It's keeping the code behavior consistent throughout the Validation class. The code should be changed around line 232 of Validation.php in order to squash the bug. |
Messages In This Thread |
isset/required validation bug - by El Forum - 08-21-2007, 05:06 PM
isset/required validation bug - by El Forum - 08-21-2007, 05:51 PM
isset/required validation bug - by El Forum - 08-22-2007, 08:19 AM
isset/required validation bug - by El Forum - 08-22-2007, 08:51 AM
isset/required validation bug - by El Forum - 08-22-2007, 10:04 AM
isset/required validation bug - by El Forum - 08-22-2007, 11:56 AM
isset/required validation bug - by El Forum - 08-29-2007, 03:07 AM
|