Welcome Guest, Not a member yet? Register   Sign In
CI 1.7 form_validation bug regarding callbacks
#3

[eluser]Unknown[/eluser]
Bogdan,

Yes, I think it is a bug. In my application, I need to have two call back functions in series:
* the first callback rewrites the field contents (it is verified against the database) and thus must return a string;
* the second callback looks at the rewritten field to determine if it was completely valid or not, and therefore returns a boolean. If the field is not valid, I still want the user presented with the rewritten field.

I couldn't understand the logic at Form_validation.php:610, and in the end commented out the return - an outcome very similar to using continue.

So I believe this code should be reviewed to ensure multiple callbacks can be called, as occurs with inbuilt functions.


Messages In This Thread
CI 1.7 form_validation bug regarding callbacks - by El Forum - 10-30-2008, 05:27 AM
CI 1.7 form_validation bug regarding callbacks - by El Forum - 11-01-2008, 11:09 AM
CI 1.7 form_validation bug regarding callbacks - by El Forum - 11-05-2008, 02:04 PM
CI 1.7 form_validation bug regarding callbacks - by El Forum - 09-03-2009, 03:41 AM
CI 1.7 form_validation bug regarding callbacks - by El Forum - 09-03-2009, 04:38 AM
CI 1.7 form_validation bug regarding callbacks - by El Forum - 09-03-2009, 04:39 AM
CI 1.7 form_validation bug regarding callbacks - by El Forum - 09-03-2009, 09:58 PM
CI 1.7 form_validation bug regarding callbacks - by El Forum - 09-04-2009, 01:29 AM
CI 1.7 form_validation bug regarding callbacks - by El Forum - 09-04-2009, 10:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB