Validation bug on windows ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Validation bug on windows ?

realien

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 [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Validation bug on windows ?

realien

Hey guys, can someone confirm this is a bug or user error ?

On Nov 1, 1:07 pm, "realien" <[hidden email]> 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 [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: Re: Validation bug on windows ?

Samuel DeVore

I can not.  I do not run cake on a windows server.  I would recommend
getting on the irc channel for quicker feedback.  It is likely that
you will only get an answer from someone who has this problem.  And I
know that most people I have seen don't usually answer when they do
not have the problem, your best bet is to report it as a bug (open a
ticket at http://trac.cakephp.org/ ) and see if there is a
confirmation there, better to have it seen and closed and possibly
fixed then to never have it looked at by the core guys

On 11/2/06, realien <[hidden email]> wrote:

>
> Hey guys, can someone confirm this is a bug or user error ?
>
> On Nov 1, 1:07 pm, "realien" <[hidden email]> 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
>
>
> >
>


--
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---