Hello,

I've had some problems with authcache with its way to handle forms:
In order to update the token_id of a form, authcache invalidates the click on a submit button to modify the form's token_id via an AJAX call. When the AJAX call is complete, authcache submits the form by calling form.submit().

But by doing so, the form is submitted without the clicked button's name&value. That's an issue in some cases: with forms that contain several submit buttons for instance, because we need the clicked submit button's name&value to know which one was clicked.

Here is a patch that adds a hidden input containing the clicked submit button. Solution to be reviewed.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pacproduct’s picture

Here is the patch attached.
Regards.

simg’s picture

Thanks PAC

I'm just working through closing old issues and it looks like a similar fix was applied some time ago. closing this issue but you're welcome to re-open if it's still a problem. You won't have to wait 2 years for a reply.

simg’s picture

Status: Active » Closed (fixed)