Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2501337.views_calc.page-subtotal-showing.patch | 605 bytes | joachim |
Comments
Comment #1
joachim CreditAttribution: joachim commentedComment #2
dobrzyns CreditAttribution: dobrzyns at Promet Source commentedI can verify that this patch resolves the issue.
Comment #3
dobrzyns CreditAttribution: dobrzyns at Promet Source commented