Hey guys, can someone confirm this is a bug or user error ?
On Nov 1, 1:07 pm, "realien" <[EMAIL PROTECTED]> wrote:
> I've been developing an app with a collegue and he was testing on a
> linux box and his validations where working fine, I was having issues
> on windows, he just moved his part of the app to windows and now
> rendering of the tagErrorMsg doesn't work.
>
> It only seems to happen when validating a related model to your primary
> model
>
> here is code that doesn't render the tagErrorMsg properly :
>
> $success = $this->Asset->AssetData->save($this->data);
>
> if (!$success)
> {
>
> $this->render('add');
> return;
>
> }
>
> by adding the validateErrors call it works and the tagErrorMsg are
> displayed :
>
> $success = $this->Asset->AssetData->save($this->data);
>
> if (!$success)
> {
> $this->validateErrors($this->Asset->AssetData);
> // new line added
> $this->render('add');
> return;
>
> }
>
> Is this a bug, or am I being dumb ? :)
>
> Grant
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---