While working on #1457256: Enable Lite Pager On Project Issues Advanced Search I discovered a bug in search_api_views regarding how the pager is handled. Turns out that in SearchApiViewsQuery::execute(), we're invoking the pager plugin's post_execute() method with am empty array. This causes the pager plugins to get confused about if there's another page of results to display or not, and therefore if the pager should appear at all.

Trivial patch coming soon.

Comments

dww’s picture

Status: Active » Needs review
StatusFileSize
new584 bytes

It's just a simple typo in the invocation, confusion over result vs. results.

drumm’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Ah, damn, another sloppy patch review coming back to haunt me …
Thanks a lot for spotting and fixing this! Committed.

Status: Fixed » Closed (fixed)

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