Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 313776

Ajax forms doesn't work properly with ajax views.

$
0
0

If we have views with AJAX enabled, that contains AJAX-forms in results (e.g. commerce AJAX add to cart forms), all forms will not work after view was updated. Reason is form action, that becomes 'views/ajax', and ViewAjaxController returns 404, because there are no 'view_name' and 'view_display_id' parameters in form request.

Way to reproduce it:

- create view, that displays entities, that contain AJAX - forms (e.g. commerce ajax add to cart form)
- enable AJAX in view
- open view and refresh it with ajax (turn page or apply filters)
- try to submit ajax form.

Proposed resolution

- Modify ViewAjaxController to handle form requests
- Or totally modify form API, to use some other route as form action (as it was in Drupal 7)


Viewing all articles
Browse latest Browse all 313776

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>