From 1cdbc0fcc1b4f690ab64eb5941da9c3dcd0c1f7a Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 30 Aug 2024 12:51:25 +0200 Subject: [PATCH] fix: refs #7831 add locale & hide table params --- src/components/ui/VnFilterPanel.vue | 7 +++++-- src/pages/Item/Card/ItemCard.vue | 2 +- src/pages/Item/Card/ItemLastEntries.vue | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue index ab4e2e0da..65cd32a37 100644 --- a/src/components/ui/VnFilterPanel.vue +++ b/src/components/ui/VnFilterPanel.vue @@ -201,8 +201,11 @@ function formatValue(value) { function sanitizer(params) { for (const [key, value] of Object.entries(params)) { - if (typeof value == 'object') - params[key] = Object.values(value)[0].replaceAll('%', ''); + if (typeof value === 'object' && value !== null) { + sanitizer(value); + } else if (typeof value === 'string') { + params[key] = value.replaceAll('%', ''); + } } return params; } diff --git a/src/pages/Item/Card/ItemCard.vue b/src/pages/Item/Card/ItemCard.vue index 1162327c1..2412f2bf9 100644 --- a/src/pages/Item/Card/ItemCard.vue +++ b/src/pages/Item/Card/ItemCard.vue @@ -12,7 +12,7 @@ import ItemListFilter from '../ItemListFilter.vue'; search-data-key="ItemList" :searchbar-props="{ url: 'Items/filter', - label: 'searchbar.labelr', + label: 'searchbar.label', info: 'searchbar.info', }" /> diff --git a/src/pages/Item/Card/ItemLastEntries.vue b/src/pages/Item/Card/ItemLastEntries.vue index b211790ca..4a84fdb55 100644 --- a/src/pages/Item/Card/ItemLastEntries.vue +++ b/src/pages/Item/Card/ItemLastEntries.vue @@ -42,6 +42,7 @@ const to = ref(); const arrayData = useArrayData('ItemLastEntries', { url: 'Items/lastEntriesFilter', order: ['landed DESC', 'buyFk DESC'], + searchUrl: 'itemLastEntries', exprBuilder: exprBuilder, userFilter: { where: {