[REGRESSION] some view tokens not replaced in filename

Created on 9 October 2019, about 5 years ago
Updated 23 December 2024, 14 days ago

since version 8.x-1.0-beta3, some of the view tokens ( [view:total-rows] , [view:current-page] and [view:page-count] ) are not correctly replaced in the filename for the download file.

even though the token replacement is done at a later stage in the flow in version 8.x-1.0-beta3, in static method \Drupal\views_data_export\Plugin\views\display\DataExport::buildResponse , the values needed for the token replacement are not available, as the previously executed view is not available here, yet a new view object view is generated ad-hoc inside this static method.

not sure how i would fix this, and i don't have the time to dig deep into this at the moment :(

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇳🇱Netherlands pieter_duijves

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024