diff --git a/src/admin/components/edition/category-edition-form.vue b/src/admin/components/edition/category-edition-form.vue index 5b2abdea0..9af229f90 100644 --- a/src/admin/components/edition/category-edition-form.vue +++ b/src/admin/components/edition/category-edition-form.vue @@ -147,7 +147,7 @@ mixins: [ wpAjax ], data(){ return { - categoryId: Number, + categoryId: String, activeTab: 0, category: null, isLoadingCategory: false, @@ -184,7 +184,7 @@ 'createCategory', 'updateCategory', 'fetchCategory', - 'fetchOnlySlug', + 'fetchOnlySlug' ]), ...mapGetters('category',[ 'getCategory', diff --git a/src/admin/components/edition/item-edition-form.vue b/src/admin/components/edition/item-edition-form.vue index 8efbcaa60..90784536e 100644 --- a/src/admin/components/edition/item-edition-form.vue +++ b/src/admin/components/edition/item-edition-form.vue @@ -222,13 +222,11 @@ export default { this.$router.push(this.$routerHelper.getItemPath(this.form.collectionId, this.itemId)); }) .catch((errors) => { - this.$console.log(errors); for (let error of errors.errors) { - for (let attribute of Object.keys(error)){ - eventBus.errors.push({ field_id: attribute, errors: error[attribute]}); + for (let field of Object.keys(error)){ + eventBus.errors.push({ field_id: attribute, errors: error[field]}); } } - this.$console.log(eventBus.errors); this.formErrorMessage = errors.error_message; this.isLoading = false; diff --git a/src/admin/components/edition/term-edition-form.vue b/src/admin/components/edition/term-edition-form.vue index b8bf8d928..d8f6c96c7 100644 --- a/src/admin/components/edition/term-edition-form.vue +++ b/src/admin/components/edition/term-edition-form.vue @@ -6,13 +6,11 @@ + :type="(formErrors.name != '' && formErrors.name != undefined) ? 'is-danger' : ''" + :message="formErrors.name"> - +