From f09308d95682ce1454a33b44d954e75e895b675d Mon Sep 17 00:00:00 2001 From: guillermo Date: Wed, 31 Jul 2024 12:50:34 +0200 Subject: [PATCH 01/14] fix: refs #7413 No id tag --- src/components/ItemsFilterPanel.vue | 1 + src/pages/Item/ItemListFilter.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/ItemsFilterPanel.vue b/src/components/ItemsFilterPanel.vue index 94adfe0ff..743c2c9d1 100644 --- a/src/components/ItemsFilterPanel.vue +++ b/src/components/ItemsFilterPanel.vue @@ -112,6 +112,7 @@ const getCategoryClass = (category, params) => { const getSelectedTagValues = async (tag) => { try { + if (!tag?.selectedTag?.id) return; tag.value = null; const filter = { fields: ['value'], diff --git a/src/pages/Item/ItemListFilter.vue b/src/pages/Item/ItemListFilter.vue index a51f9ebb4..62c0c56dc 100644 --- a/src/pages/Item/ItemListFilter.vue +++ b/src/pages/Item/ItemListFilter.vue @@ -56,6 +56,7 @@ const onCategoryChange = async (categoryFk, search) => { const getSelectedTagValues = async (tag) => { try { + if (!tag?.selectedTag?.id) return; tag.value = null; const filter = { fields: ['value'], From 3a64929c05b6b2ba0c38319ef822f24e98df7bb3 Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 1 Aug 2024 10:35:33 +0200 Subject: [PATCH 02/14] feat(VnLocation): onCityCreated refresh provinces --- src/components/CreateNewPostcodeForm.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/CreateNewPostcodeForm.vue b/src/components/CreateNewPostcodeForm.vue index e6247226e..a426ac2b4 100644 --- a/src/components/CreateNewPostcodeForm.vue +++ b/src/components/CreateNewPostcodeForm.vue @@ -45,6 +45,7 @@ function onDataSaved(formData) { } async function onCityCreated(newTown, formData) { + await provincesFetchDataRef.value.fetch(); newTown.province = provincesOptions.value.find( (province) => province.id === newTown.provinceFk ); From c5f207514868a642d6c075ad71c2efb558d00fea Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 2 Aug 2024 08:25:57 +0200 Subject: [PATCH 08/14] fix: refs #6101 fix TicketList --- src/pages/Ticket/TicketList.vue | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/pages/Ticket/TicketList.vue b/src/pages/Ticket/TicketList.vue index ad53935bc..eda2b1b10 100644 --- a/src/pages/Ticket/TicketList.vue +++ b/src/pages/Ticket/TicketList.vue @@ -1,6 +1,7 @@