Complete row-count broken on export

Created on 13 May 2023, almost 2 years ago
Updated 14 May 2023, almost 2 years ago

Problem/Motivation

With the easiest way to let a row count be possible in views, it is shown on screen, but not on the export.
For me this is needed to know if I have exported all 1000+ rows to csv, so I can Migrate from there to Drupal 10.

Steps to reproduce

Install Views and Views PHP. Add field handler with Views PHP. Like: https://drupal.stackexchange.com/a/99358/109968
Set in Value code

$static = 0;

Set in Output code

<?php
++$static;
print $static;
 ?>

See on the screen your field adds nicely the rownumbers for every row.
But when I export the pager-range of the view, no row-count is exported. All rows have the value 1!

Proposed resolution

Repair the row-count export.

Remaining tasks

This issue is related to earlier issues, but now I see that really everything connected to row-count is not working on export csv!
https://www.drupal.org/project/vbo_export/issues/3184888 🐛 View Result Counter is broken on exports that use batching Active
https://www.drupal.org/project/vbo_export/issues/3359435 🐛 View Result Counter is broken on exports that use batching Active

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇳🇱Netherlands Summit

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

Comments & Activities

Production build 0.71.5 2024