Hello,

For one of my models, I have this (among other) validation
requirements:

'fee' => array(
        'gt_0' => array(
                'rule' => array('comparison', '>=', 0),
                'message' => 'Please enter a valid fee (eg. $100.00)'
        ),
        'number' => array(
                'rule' => 'numeric',
                'message' => 'Please enter a valid fee (eg. $100.00)'
        )
),


I have a couple of different edit screens for this model, one of which
asks for the 'fee' field, one does not. On the screen that does not
ask, the field is not in the $this->data array anywhere before calling
Model->save(). However, validation is failing for some reason on that
field. Is there a reason for this? When the model is being created
initially, and the 'fee' field is still not specified, validation
passes and it creates successfully. This only happens on an update.
Any way around this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to