Hi Oribium,

I have had this problem.  "This field cannot be left blank" is Cake's
default response when the data you are saving does not meet your data
structure and you haven't configured a validation message for the
validation scenario.

For example: if you specify a max field length of 3 characters, then
try to save a string of 3 or more, you get the "This field cannot be
left blank" response (if you haven't configured a validation rule in
your Model).

Additionally, it seems the message does not necessarily appear on the
field which is having the issue.

To fix it, try constructing a query to save the data that is causing
the issue.  When you identify the problematic data, add a validation
rule into your model to catch it and return a more meaningful
validation message.


Cheers Paul.
--~--~---------~--~----~------------~-------~--~----~
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