Instead of returning the total rows, a count of the queried rows is returned, which equals [views:items-per-page] whenever the view is paged. Simply using $view->total_rows should fix that.

CommentFileSizeAuthor
views-total-rows.patch658 bytessmk-ka

Comments

smk-ka created an issue. See original summary.

dawehner’s picture

Status: Needs review » Needs work

Thank you for the patch!

Well, for the 'some' pager, this is actually not right, because the pager is not executed, so total_rows will not be set.

smk-ka’s picture

Status: Needs work » Closed (duplicate)

Sorry, this is actually a duplicate of #2572355, which contains the same fix, so I guess your comment applies there, too.

bramdriesen’s picture