소스 검색

Update Model.php

Dog 3 년 전
부모
커밋
addadac1b7
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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;
     }
 
     /**