Hi, I would like to know how Cake handle the priorities in a
validation rule. Next, an example:
password_confirm' => array(
'rule' => array('between', 5, 15),
'required' => true,
'on' => 'create',
'message' => 'Error!!!!'
),
I want to throw this error only on creation of the model instance, that
´s why I put the 'on' => 'create'. However, when I edit it, this
validation rule is happening. After try and error for a while, I´ve
notice that the 'required' => true line is the guilty here. If i
remove it, all works just fine. So, is there a bug here or am I the
only one who thinks that on => create has to have more priority than
the other lines?
Cheers,
mbavio
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---