Welcome Guest, Not a member yet? Register   Sign In
a form validation issue
#11

So it seems in 3.1 there was a change to the form validation library that re-orders the rules putting callbacks to be run first.
Quote:Prepare rules
*
* Re-orders the provided rules in order of importance, so that
* they can easily be executed later without weird checks ...
*
* "Callbacks" are given the highest priority (always called),
* followed by 'required' (called if callbacks didn't fail),
* and then every next rule depends on the previous one passing.
*
* @param array $rules
* @return array

I am not sure what the reasoning behind this was but it appears to be fairly annoying. Could just comment out the re-ordering but there must have been a reason this was done.

Perhaps someone from the CI team could tell us why this was. I am going to head over to github to see if I can find a reason behind it, although to me it seems the rules should be applied in the order I put them.

Best wishes,

Paul.
Reply


Messages In This Thread
a form validation issue - by shadowpaw - 08-08-2016, 02:16 AM
RE: a form validation issue - by PaulD - 08-08-2016, 08:55 AM
RE: a form validation issue - by shadowpaw - 08-09-2016, 12:42 AM
RE: a form validation issue - by PaulD - 08-09-2016, 04:06 AM
RE: a form validation issue - by shadowpaw - 08-09-2016, 11:41 PM
RE: a form validation issue - by InsiteFX - 08-09-2016, 10:04 AM
RE: a form validation issue - by shadowpaw - 08-09-2016, 11:40 PM
RE: a form validation issue - by PaulD - 08-10-2016, 09:27 AM
RE: a form validation issue - by shadowpaw - 08-13-2016, 01:41 AM
RE: a form validation issue - by PaulD - 08-13-2016, 09:07 AM
RE: a form validation issue - by PaulD - 08-13-2016, 09:17 AM
RE: a form validation issue - by PaulD - 08-13-2016, 09:27 AM
RE: a form validation issue - by pgilgunn - 02-15-2017, 01:52 PM
RE: a form validation issue - by Narf - 02-15-2017, 03:30 PM
RE: a form validation issue - by pgilgunn - 02-16-2017, 03:01 AM
RE: a form validation issue - by Mr Lister - 04-08-2017, 05:41 AM
RE: a form validation issue - by shadowpaw - 05-10-2017, 03:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB