hi all,
I use 1.2 RC2
I have 2 models (model1 and model2) linked by HABTM
if I write in model1 / beforeSave() : if (...) { $this-
>invalidate('Model2', 'some text'); return false; }
when the form is displayed, I juste see the first letter of the error
message
for me, the error seems to come from cake / libs / view / helper /
tagIsInvalid :
the function returns $errors[$model][$field]
but in this case, $error = array(1) { ["Model2"] => string(9) "some
text" }
is it a bug or am I doing something wrong ?
thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---