Explorar el Código

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

Return back set maxPageLinks for datagrid Pager.
Thomas hace 12 años
padre
commit
028079797f
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      Admin/Admin.php

+ 2 - 0
Admin/Admin.php

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