Explorar o código

Update Model.php

Dog %!s(int64=3) %!d(string=hai) anos
pai
achega
addadac1b7
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/Grid/Model.php

+ 3 - 1
src/Grid/Model.php

@@ -535,7 +535,9 @@ class Model
             return;
         }
 
-        return $this->request->get($this->getPerPageName()) ?: $this->perPage;
+        $perPage =  $this->request->get($this->getPerPageName()) ?: $this->perPage;
+        if($perPage) return (int)$perPage;
+        return null;
     }
 
     /**