View Result Counter is broken on exports that use batching

Created on 25 November 2020, about 4 years ago
Updated 10 May 2023, over 1 year ago

Problem/Motivation

View Result Counter is broken on exports that use batching, because it only adds up per batch.

Steps to reproduce

1. Create any view, and add the field 'View result counter' to it.
2. Set up the export so it uses batches.
3. When you export, the counter gets up to whatever batch number you adjust, and starts over for the next batch.

So for example, if your view has 30 results, and you do batches of 10 rows.. that field becomes.
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10
1
2
3
.
.
.

Proposed resolution

Not sure if diving into how that field works is too much and outside of the scope of this module. How about we add this as an additional option.. 'Enumerate rows' or something like that.. we would need to add a counter before the batch process starts and maybe multiply the row number per that counter to get the right number.. I dont know enough of this module to give a better answer but maybe someone does.

🐛 Bug report
Status

Active

Version

3.2

Component

Code

Created by

🇨🇷Costa Rica rolandoscott

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

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