Field limiter does not always output the requested number of items

Created on 26 April 2019, about 5 years ago
Updated 15 April 2024, 2 months ago

Problem/Motivation

In our project we noticed that although we specified 9 items only 2 items were shown. The original collection contained over 100 items though. It turned out that the first 9 items contained 7 unpublished ones.

Proposed resolution

The proposed solution is to let the Field Limiter module iterate over the available items untill the desired number of items is available in the output. The patch contains the code that is tested to work on our client project.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands Gerben Spil

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.69.0 2024