AJAX or path issue with views_data_export on manage registrations view

Created on 29 April 2024, 7 months ago
Updated 5 May 2024, 6 months ago

Problem/Motivation

I'm not sure if the problem lies with Registration or Views Data Export, but if you have drupal/views_data_export attached to the manage registrations block, and you have enough registrants that the email filter displays, when you filter by an email and then click the 'Reset' button, instead of resetting the page, the views data export functionality is engaged.

There is an adjacent ticket open for Views Data Export, but it references an issue with the 'Apply' button. The 'Find' / 'Apply' button on the manage registrations view works as expected. It's the 'Reset' button that fires the export instead of resetting the page. On inspection, I noticed that whatever path I was adding to the views export field, ex. /export, wouldn't get added to the backend of the URL but would be inserted into the middle, so you would get something like https://domain/export/node/nid instead of the expected https://domain/node/nid/export.

Steps to reproduce

  • Install Drupal 10.2.5, Registration 3.1.4, and Views Data Export 1.4.0.
  • Set up a registration and attach it to a content type.
  • Add a data export view to your manage registrations block view.
  • Register enough people so that the search form appears.
  • Filter by a keyword and click 'Find.'
  • Click 'Reset' and see that the page does not reload, but instead, the export tries to download.
  • (The export button works as expected.)

Proposed resolution

I was able to mitigate the issue by turning off AJAX on the manage registrations block view. Under Other settings, select No for Use AJAX. This allows the 'Reset' button to function as expected. I'm not sure why having AJAX enabled is creating a problem or whether the problem lies with how the path is getting created.

πŸ’¬ Support request
Status

Closed: works as designed

Version

3.1

Component

Registration Core

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024