From 4f814b12d3894e91c52ee8c8e11cc2ad60a9619f Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Thu, 31 Oct 2019 15:56:42 -0300 Subject: [PATCH] Changes sorting direction on term edition form parent request. Solves overlapping css issue of autocomplete. --- src/admin/components/edition/term-edition-form.vue | 2 +- src/admin/scss/_dropdown-and-autocomplete.scss | 1 + src/classes/metadata-types/tainacan-form-item.vue | 2 +- src/classes/metadata-types/taxonomy/AddNewTerm.vue | 2 +- src/js/store/modules/taxonomy/actions.js | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/admin/components/edition/term-edition-form.vue b/src/admin/components/edition/term-edition-form.vue index 7c1c21dd6..76cd5d2bb 100644 --- a/src/admin/components/edition/term-edition-form.vue +++ b/src/admin/components/edition/term-edition-form.vue @@ -144,7 +144,7 @@ :message="$i18n.get('info_help_parent_term')"/> { // Used only on Term Edition form, for autocomplete searhc for parents export const fetchPossibleParentTerms = ({ commit }, { taxonomyId, termId, search } ) => { return new Promise((resolve, reject) => { - axios.tainacan.get('/taxonomy/' + taxonomyId + '/terms?searchterm=' + search + '&hierarchical=1&exclude_tree=' + termId + "&hideempty=0&offset=0&number=20") + axios.tainacan.get('/taxonomy/' + taxonomyId + '/terms?searchterm=' + search + '&hierarchical=1&exclude_tree=' + termId + "&hideempty=0&offset=0&number=20&order=asc") .then(res => { let parentTerms = res.data; resolve( parentTerms );