Re: Mystery, Edit action changes to Add action when validation fails...

2007-06-24 Thread oleonav
Ok, that makes sense. On Jun 23, 1:05 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 6/23/07, oleonav <[EMAIL PROTECTED]> wrote: > > > > > Nevertheless one would expect that Cake should output the right form > > tag when a validation error is found. > > You are trying to fight cake instea

Re: Mystery, Edit action changes to Add action when validation fails...

2007-06-23 Thread Dr. Tarique Sani
On 6/23/07, oleonav <[EMAIL PROTECTED]> wrote: > > Nevertheless one would expect that Cake should output the right form > tag when a validation error is found. You are trying to fight cake instead of relishing it - the convention states that if an ID field is found then edit action is presumed fo

Re: Mystery, Edit action changes to Add action when validation fails...

2007-06-23 Thread oleonav
Hi there Tarique, I have added your suggestion to the edit template and it worked. Nevertheless one would expect that Cake should output the right form tag when a validation error is found. Thanks, On Jun 22, 2:42 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 6/22/07, oleonav <[EMAIL

Re: Mystery, Edit action changes to Add action when validation fails...

2007-06-22 Thread Jonathan Langevin
I personally use $form->hidden('id'), dunno if $form->input would automagically create it as a hidden field (tho, knowing cake, it probably would) On 6/22/07, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote: > > On 6/22/07, oleonav <[EMAIL PROTECTED]> wrote: > > > > > > I have posted this questions ear

Re: Mystery, Edit action changes to Add action when validation fails...

2007-06-22 Thread Dr. Tarique Sani
On 6/22/07, oleonav <[EMAIL PROTECTED]> wrote: > > > I have posted this questions earlier on but no replies so I'll ask you > again; > > --- > Strange things happen when using multiple validations rules in cake > 1.2. in combination with an edit action > > When requesting a edit action for example

Mystery, Edit action changes to Add action when validation fails...

2007-06-22 Thread oleonav
I have posted this questions earlier on but no replies so I'll ask you again; --- Strange things happen when using multiple validations rules in cake 1.2. in combination with an edit action When requesting a edit action for example admin/pages/edit/3 - in the view admin_edit.ctp the helper $form