A free open source IT asset/license management system
Fixed #4370 - user’s listing flashing then no results
snipe28a4293a0b16
diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.phpindex 50d72d13e3..d0478a1599 100644--- a/app/Http/Controllers/Api/UsersController.php+++ b/app/Http/Controllers/Api/UsersController.php@@ -85,7 +85,7 @@ class UsersController extends Controller$order = $request->input('order') === 'asc' ? 'asc' : 'desc';$offset = request('offset', 0);- $limit = request('limit', 50);+ $limit = request('limit', 20);switch ($request->input('sort')) {case 'manager':diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.phpindex 748a2e2a64..2c2da6cefc 100644--- a/resources/views/partials/bootstrap-table.blade.php+++ b/resources/views/partials/bootstrap-table.blade.php@@ -32,7 +32,7 @@-$('.snipe-table').bootstrapTable('destroy').bootstrapTable({+ $('.snipe-table').bootstrapTable('destroy').bootstrapTable({classes: 'table table-responsive table-no-bordered',undefinedText: '',iconsPrefix: 'fa',@@ -46,30 +46,27 @@ $('.snipe-table').bootstrapTable('destroy').bootstrapTable({sidePagination: '{{ (isset($clientSearch)) ? 'client' : 'server' }}',sortable: true,-@if (!isset($simple_view))showRefresh: true,pagination: true,- pageSize: {{ $snipeSettings->per_page }},-+ pageSize: 20,cookie: true,cookieExpire: '2y',showExport: true,-- stickyHeader: true,- stickyHeaderOffsetY: stickyHeaderOffsetY + 'px',+ stickyHeader: true,+ stickyHeaderOffsetY: stickyHeaderOffsetY + 'px',@if (isset($showFooter))- showFooter: true,+ showFooter: true,@endifshowColumns: true,trimOnSearch: false,- @if (isset($multiSort))- showMultiSort: true,- @endif+ @if (isset($multiSort))+ showMultiSort: true,+ @endif@if (isset($exportFile))exportDataType: 'all',@@ -97,7 +94,7 @@ $('.snipe-table').bootstrapTable('destroy').bootstrapTable({@endif@if (isset($columns))- columns: {!! $columns !!},+ columns: {!! $columns !!},@endifmobileResponsive: true,@@ -109,7 +106,7 @@ $('.snipe-table').bootstrapTable('destroy').bootstrapTable({formatLoadingMessage: function () {return '<h4><i class="fa fa-spinner fa-spin" aria-hidden="true"></i> Loading... please wait.... </h4>';},- pageList: ['30','50','100','150','200','500'],+ pageList: ['20', '30','50','100','150','200'],icons: {advancedSearchIcon: 'fa fa-search-plus',paginationSwitchDown: 'fa-caret-square-o-down',@@ -121,7 +118,7 @@ $('.snipe-table').bootstrapTable('destroy').bootstrapTable({minus: 'fa fa-minus',@endifrefresh: 'fa-refresh'- },+ }});}diff --git a/resources/views/users/index.blade.php b/resources/views/users/index.blade.phpindex 4403984e59..1fcd3a10b2 100755--- a/resources/views/users/index.blade.php+++ b/resources/views/users/index.blade.php@@ -67,7 +67,7 @@array('deleted'=> (Input::get('status')=='deleted') ? 'true' : 'false','company_id'=>e(Input::get('company_id')))) }}"data-cookie="true"data-click-to-select="true"- data-cookie-id-table="userlTableDisplay-{{ config('version.hash_version') }}">+ data-cookie-id-table="userTableDisplay-{{ config('version.hash_version') }}"></table>