diff --git a/application/WarehouseCategory/WarehouseCategoryController.php b/application/WarehouseCategory/WarehouseCategoryController.php index ffc821b58..443b0d8fa 100644 --- a/application/WarehouseCategory/WarehouseCategoryController.php +++ b/application/WarehouseCategory/WarehouseCategoryController.php @@ -7,7 +7,7 @@ class WarehouseCategoryController extends TTCrud { // @formatter:off protected array $columns = [ - ['key' => 'title', 'text' => 'Titel', 'required' => true,], + ['key' => 'name', 'text' => 'Name', 'required' => true,], ['key' => 'description', 'text' => 'Beschreibung', 'required' => true], ['key' => 'create', 'text' => 'Erstellt am', 'required' => false, 'modal' => false, 'table' => ['filter' => false, 'sortable' => false, 'class' => 'text-center']], ['key' => 'create_by', 'text' => 'Erstellt von', 'required' => false, 'modal' => false, 'table' => ['filter' => false, 'sortable' => false, 'class' => 'text-center']], diff --git a/public/plugins/vue/tt-components/tt-table.js b/public/plugins/vue/tt-components/tt-table.js index 5ee52b9f8..21e99d7a4 100644 --- a/public/plugins/vue/tt-components/tt-table.js +++ b/public/plugins/vue/tt-components/tt-table.js @@ -368,7 +368,16 @@ Vue.component('tt-table', { pagination: { page: Math.max(page, 1), per_page: this.pagination?.per_page ? this.pagination.per_page : 10, }, filters: this.filters, order: this.order - }); + }).catch(error => { + if (this.window.fetchErrorOccurred === undefined) { + this.filters = {}; + this.order = {key: null, order: 'asc'}; + this.expandedRows = {}; + this.disableDebounce = true; + this.fetchData(page).then(); + } + this.window.fetchErrorOccurred = true; + }) if (fetchTimestamp !== this.latestFetchTimestamp) return;