Merge branch 'develop' of https://github.com/tainacan/tainacan into develop
This commit is contained in:
commit
13c5ed3ee0
|
@ -569,6 +569,8 @@ class REST_Items_Controller extends REST_Controller {
|
|||
private function get_items_permissions_check_for_taxonomy($taxonomies) {
|
||||
|
||||
foreach ($taxonomies as $tax) {
|
||||
if( !isset($tax['taxonomy']) )
|
||||
return false;
|
||||
$taxonomy = \tainacan_taxonomies()->fetch_by_db_identifier( $tax['taxonomy'] );
|
||||
|
||||
if( $taxonomy instanceof Entities\Taxonomy ) {
|
||||
|
|
|
@ -384,9 +384,7 @@
|
|||
this.prepareFilters();
|
||||
});
|
||||
if (this.isUsingElasticSearch) {
|
||||
this.$eventBusSearch.$on('isLoadingItems', isLoadingItems => {
|
||||
this.isLoadingItems = isLoadingItems;
|
||||
});
|
||||
this.$eventBusSearch.$on('isLoadingItems', this.updateIsLoadingItems);
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
@ -405,7 +403,7 @@
|
|||
this.$eventBusSearch.$off('hasToPrepareMetadataAndFilters');
|
||||
|
||||
if (this.isUsingElasticSearch)
|
||||
this.$eventBusSearch.$off('isLoadingItems');
|
||||
this.$eventBusSearch.$off('isLoadingItems', this.updateIsLoadingItems);
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
@ -482,6 +480,9 @@
|
|||
this.repositoryFiltersSearchCancel = source;
|
||||
});
|
||||
}
|
||||
},
|
||||
updateIsLoadingItems(isLoadingItems) {
|
||||
this.isLoadingItems = isLoadingItems
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue