On 23 December 2010 16:42, DenesL <denes1...@yahoo.ca> wrote:

>
> Two things to check:
> 1) you might have session.forget() in the controller, maybe outside
> the action.
> 2) you might be using a custom form and it is missing the hidden
> fields,
>   if you don't have the _formkey then the form will not be accepted.


I have it working now and it seems that the main thing I have changed to
make it work was to change the name of the field (from 'id' to something
else).  I did not check afterwards in the documentation but I suspect that
SQLFORM.factory uses an 'id' field (hidden).

What I could not understand was that when I the normal crud form in the html
there were two identical fields('id') although I had only one in my
definition.  Changing the name of the field corrected that and the
redirection took place as expected.

Regards
Johann
--
 May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord!  His divine power has given us everything we need for
life and godliness through the full knowledge of the one who called us by
his own glory and excellence.
                                                    2 Pet. 1:2b,3a

Reply via email to