Browse Source

Merge pull request #1126 from suslin/list-pagination-fix

Return back set maxPageLinks for datagrid Pager.
Thomas 12 years ago
parent
commit
028079797f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Admin/Admin.php

+ 2 - 0
Admin/Admin.php

@@ -762,6 +762,8 @@ abstract class Admin implements AdminInterface, DomainObjectInterface
         // initialize the datagrid
         // initialize the datagrid
         $this->datagrid = $this->getDatagridBuilder()->getBaseDatagrid($this, $filterParameters);
         $this->datagrid = $this->getDatagridBuilder()->getBaseDatagrid($this, $filterParameters);
 
 
+        $this->datagrid->getPager()->setMaxPageLinks($this->maxPageLinks);
+
         $mapper = new DatagridMapper($this->getDatagridBuilder(), $this->datagrid, $this);
         $mapper = new DatagridMapper($this->getDatagridBuilder(), $this->datagrid, $this);
 
 
         // build the datagrid filter
         // build the datagrid filter