Any possible ideas anyone?
On Jul 17, 10:17 am, blake <[email protected]> wrote: > 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 [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 -~----------~----~----~----~------~----~------~--~---
