For reasons I've not been able to fathom, $view->get_items_per_page() sometimes returns 0, even though the pager is set to a positive number.

At any rate, views_calc should treat a 0 value here as meaning 'the pager is showing unlimited items', and therefore there is no paging, and no page subtotal should be shown.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim’s picture

Status: Active » Needs review
FileSize
605 bytes
dobrzyns’s picture

I can verify that this patch resolves the issue.

dobrzyns’s picture

Status: Needs review » Reviewed & tested by the community