mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
- fix : wip
This commit is contained in:
@@ -617,17 +617,12 @@ class databox extends base implements ThumbnailedElement
|
|||||||
$repositoryRegistry = $this->app['repo.collections-registry'];
|
$repositoryRegistry = $this->app['repo.collections-registry'];
|
||||||
$repository = $repositoryRegistry->getRepositoryByDatabox($this->get_sbas_id());
|
$repository = $repositoryRegistry->getRepositoryByDatabox($this->get_sbas_id());
|
||||||
|
|
||||||
// $this->_collections = array_filter($repository->findAll(), function (collection $collection) {
|
$this->_collections = array_filter($repository->findAll(), function (collection $collection) {
|
||||||
// return $collection->is_active();
|
return $collection->is_active();
|
||||||
// });
|
});
|
||||||
$this->_collections = $repository->findAll();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// return $this->_collections;
|
return $this->_collections;
|
||||||
|
|
||||||
return array_filter($this->_collections, function (collection $collection) {
|
|
||||||
return $collection->is_active();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user