Not getting the exact View results.

Created on 17 August 2018, over 6 years ago
Updated 6 September 2024, 4 months ago

Lets say I have a view with exposed filters and pager which is set to display 50 items per page. When I load the page of the view initially I get all the 200 items loaded and set by 50 items per page in total 4 pages. When I apply some of the filters I get 70 results i.e. 1st page 50 results, 2nd page 20 results. When I call

$results = views_get_view_result('view_name', 'display_id');

I get array with 50 objects in $results instead of 70. Also this applies to the initial load of the view page i.e. I get 50 results instead of 200.

πŸ’¬ Support request
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
ViewsΒ  β†’

Last updated 32 minutes ago

Created by

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.

  • πŸ‡³πŸ‡±Netherlands Lendude Amsterdam

    Going through old issues for the Bug Smash Initiative

    I would expect you to always get just 50 results, so the 200 sound strange. Should this still be a problem, please provide some steps to reproduce your issue.

  • Status changed to Closed: outdated 4 months ago
  • πŸ‡³πŸ‡ΏNew Zealand quietone

    Since we need more information to move forward with this issue, and none has been supplied in 9 months I am closing this as outdated. If you are experiencing this problem provide steps to reproduce the issue β†’ (starting from "Install Drupal core") and set the status to 'Active'.

    The Drupal Core issue queue is not the ideal place for support requests (that option is mostly there for filing support issues for contributed modules and themes). There are several support options listed on our support page β†’ (Community > Support at the top of Drupal.org) and there is Drupal Slack β†’ . Drupal Slack and the Forums, which are our two main support mechanisms in the Drupal community.

Production build 0.71.5 2024