Hi! You have a comment into dba_view_table() function :

/**
* FIXME: The pager is broken.
* FIXME: The tableselect is broken.
*/

I thing that this code will fix the problem:

$query = db_select($table)->fields($table)->extend('PagerDefault')->extend('TableSort')->element($pager_element);

You have to add element($pager_element) to the query so that db_select knows about the pager.

Comments

bleeuwen’s picture

I solved it by setting $pager_element to 1

(in the code:
function dba_view_table($table) {
static $pager_element = 1; // in stead of 0

jsibley’s picture

Issue summary: View changes

Hi. Any chance of fixing this and getting it committed?

  • Jeremy committed 954a298 on 7.x-1.x
    Issue #1371646: broken pager
    
Jeremy’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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