This change of behavior was not intentional and I will look into it.
Anyway, I would not use a form with no fields. I would use a link
instead or a <button onclick=""/>

On 6 Lug, 07:29, stefaan <stefaan.hi...@gmail.com> wrote:
> Hello list,
>
> In my application, I used a form with only a submit button (no other
> fields).
> It is used to allow the user to go back to some query definition
> screen after inspecting search results.
>
> Upgrading from web2py 1.66.1 to 1.79.2 broke the application and after
> some experimenting I think
> the difference is related to this form. It seems as if in 1.79.2
> "form.accepts" never returns true for such empty form.
>
> My questions therefore are:
>
> 1. did I rely on undocumented behaviour? am I doing something non-
> sensical? am I abusing forms where I should e.g. use a link instead?
> 2. is this a backward incompatible change between 1.66.1 and 1.79.2 ?
> or is it perhaps a bug?
>
> Best regards,
> Stefaan.

Reply via email to