Both theme('pager') doesn't return any HTML (and the $globals are 0/1 even if there's two pages), and manually trying to go to a page doesn't work either. Haven't tracked down why yet.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

catch’s picture

Marked #26966: Fix comment links when paging is used. postponed on this issue.

tic2000’s picture

Status: Active » Needs review
FileSize
1.4 KB

This solves the problem.
I don't know if in the pager logic the $count_query is used, most probably not, but I don't know how to pass it. If I try to use SelectQueryInterface as a chain I get a fatal error. If I try to declare it on a new line it trows an error message, but the pager works.

Not very familiar with the new db api and how it should work.

tic2000’s picture

FileSize
1.34 KB

A proper patch. This adds the count query to the pager.

All credit to Berdir, my only merit is that I asked.

tic2000’s picture

FileSize
641 bytes

A new patch that removes a change that was in the previous patch, but was not needed.

Berdir’s picture

It was my input, so I can't rtbc it, but the changes look good and I verified that the fix works.

catch’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Quick fix

Works. Tests for this freshly re-rolled so we can watch them fail until this goes in #296483: TestingParty08: paged comments

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD.

Status: Fixed » Closed (fixed)
Issue tags: -Quick fix

Automatically closed -- issue fixed for 2 weeks with no activity.