From 4865510c3213764f0add9b9edf6e8c6f58a98980 Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Mon, 15 Jul 2019 21:19:43 -0300 Subject: [PATCH 01/22] Passes type numeric to numeric filter params. --- src/classes/filter-types/numeric/Numeric.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/classes/filter-types/numeric/Numeric.vue b/src/classes/filter-types/numeric/Numeric.vue index ed686b739..f8930712d 100644 --- a/src/classes/filter-types/numeric/Numeric.vue +++ b/src/classes/filter-types/numeric/Numeric.vue @@ -175,7 +175,8 @@ compare: this.comparator, metadatum_id: this.metadatum, collection_id: ( this.collection_id ) ? this.collection_id : this.filter.collection_id, - value: '' + value: '', + type: 'NUMERIC' }); this.value = null; @@ -191,7 +192,8 @@ compare: this.comparator, metadatum_id: this.metadatum, collection_id: ( this.collection_id ) ? this.collection_id : this.filter.collection_id, - value: this.value + value: this.value, + type: 'NUMERIC' }); this.$eventBusSearch.$emit( 'sendValuesToTags', { From dbeac4f798858cefb5571ff4b2dbf5fc3a19cb1a Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Wed, 17 Jul 2019 13:16:36 -0300 Subject: [PATCH 02/22] Adds alert for custom emtadata values used for sorting. --- src/admin/pages/lists/items-page.vue | 72 +++++++++++++++++++++++++--- src/admin/scss/_notices.scss | 2 +- src/admin/tainacan-admin-i18n.php | 1 + 3 files changed, 67 insertions(+), 8 deletions(-) diff --git a/src/admin/pages/lists/items-page.vue b/src/admin/pages/lists/items-page.vue index 157ded7a4..de9d0e1a9 100644 --- a/src/admin/pages/lists/items-page.vue +++ b/src/admin/pages/lists/items-page.vue @@ -701,6 +701,28 @@ + + + + + :message="formErrors.name ? formErrors.name : formErrors.repeated">