mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-01 20:17:35 -04:00 
			
		
		
		
	Limit per page to 5000
This commit is contained in:
		
							parent
							
								
									281975c869
								
							
						
					
					
						commit
						0d6c8f05e1
					
				| @ -555,7 +555,7 @@ class BaseController extends Controller | ||||
|     private function resolveQueryLimit(): int | ||||
|     { | ||||
|         if (request()->has('per_page')) { | ||||
|             return abs((int)request()->input('per_page', 20)); | ||||
|             return min(abs((int)request()->input('per_page', 20)), 5000); | ||||
|         } | ||||
| 
 | ||||
|         return 20; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user