Welcome Guest, Not a member yet? Register   Sign In
Call function in model before validation
#2

(This post was last modified: 01-06-2020, 06:43 AM by littlej.)

Hello,

The simplest solution would be to remove the validation rule you have set, that is blocking the process (probably something like "required", add "permit_empty" instead). Then do the validation yourself like you are doing already in your function.

As I see it, this is not really a "validation" if the provided data is always "valid". It seems to be more like a "filter" function.
Reply


Messages In This Thread
RE: Call function in model before validation - by littlej - 01-06-2020, 05:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB