A free open source IT asset/license management system
Use the max_results env value in the paginator
snipefcb81b95057b
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.phpindex 42b638ac23..9cb70cfe23 100644--- a/resources/views/partials/bootstrap-table.blade.php+++ b/resources/views/partials/bootstrap-table.blade.php@@ -51,7 +51,7 @@paginationLastText: "{{ trans('general.last') }}",paginationPreText: "{{ trans('general.previous') }}",paginationNextText: "{{ trans('general.next') }}",- pageList: ['10','20', '30','50','100','150','200', '500', '1000'],+ pageList: ['10','20', '30','50','100','150','200', '500'{!! ((config('app.max_results') > 500) ? ",'".config('app.max_results')."'" : '') !!}],pageSize: {{ (($snipeSettings->per_page!='') && ($snipeSettings->per_page > 0)) ? $snipeSettings->per_page : 20 }},paginationVAlign: 'both',queryParams: function (params) {