Export selected entries in Membership search results when selecting fields: all results are returned, not selected entries
Overview
When doing a Membership Search, selecting a subset of the results for export, and then selecting fields to export, the download file contains all results of the initial search, not the selected subset.
Reproduction steps
- Do a membership search and select a subset of the results for export.
- Choose "Export Members".
- On the "Export Options (step 2 of 3) page, choose "Select Fields to Export".
- Then select some fields and download.
Current behaviour
The resulting download contains ALL results, not just the ones that were selected at the beginning. By contrast, if you set the export to "Export PRIMARY fields", only the selected rows will be in the download file, as expected.
Expected behaviour
The download file should have only contained the rows that were selected at the beginning of the export process.
Environment information
This behavior happens on our CiviCRM 5.32.1/Drupal 7 site.
It can be reproduced on the CiviCRM Sandbox on Drupal, which is currently showing that it's running CiviCRM 5.34.alpha1, starting the search at https://dmaster.demo.civicrm.org/civicrm/member/search .
- Browser: Safari
- CiviCRM: both 5.32.1 and 5.34.alpha1
- PHP: 7.3
- CMS: Drupal 7.77