« Previous | Next » 

Revision cee5d0cf

IDcee5d0cf320ce40c0739ec4d733df5a32deb5f1c
Parent 88f1c89b
Child 4bbc1d57

Added by Bastian Waidelich about 7 years ago

[BUGFIX] Only count items in ForViewHelper when ``iteration`` argument is set

When using the ``iteration`` argument, the ``ForViewHelper`` provides
information about the current iteration, including the ``cycle`` and
``total``. Therefore it needs to count all elements.
The problem is, that this happens even if the iteration argument is
not specified leading to performance issues especially when iterating
over a (subset of a) lot of (remote) items.

This patch fixes this by adding a check for the ``iteration`` argument.

Change-Id: Ib6bdedd7ce3e6efd3d6215fd0100dd775e0cc87b
Fixes: FLOW-325
Releases: master, 3.0, 2.3, 2.2, 2.1

  • added
  • modified
  • copied
  • renamed
  • deleted