- fix : wip

This commit is contained in:
jygaulier
2020-11-02 18:05:36 +01:00
parent de0f05ad9f
commit ca250c547e

View File

@@ -617,19 +617,14 @@ class databox extends base implements ThumbnailedElement
$repositoryRegistry = $this->app['repo.collections-registry'];
$repository = $repositoryRegistry->getRepositoryByDatabox($this->get_sbas_id());
// $this->_collections = array_filter($repository->findAll(), function (collection $collection) {
// return $collection->is_active();
// });
$this->_collections = $repository->findAll();
}
// return $this->_collections;
return array_filter($this->_collections, function (collection $collection) {
$this->_collections = array_filter($repository->findAll(), function (collection $collection) {
return $collection->is_active();
});
}
return $this->_collections;
}
/**
* @return collection|null