mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-19 16:03:14 +00:00
Fix collection creation
This commit is contained in:
@@ -45,13 +45,11 @@ class CreateCollection extends Command
|
|||||||
|
|
||||||
protected function doExecute(InputInterface $input, OutputInterface $output)
|
protected function doExecute(InputInterface $input, OutputInterface $output)
|
||||||
{
|
{
|
||||||
$databox = $this->container['phraseanet.appbox']
|
$databox = $this->container['phraseanet.appbox']->get_databox((int) $input->getArgument('databox_id'));
|
||||||
->get_databox((int) $input->getArgument('databox_id'));
|
|
||||||
|
|
||||||
$new_collection = \collection::create($app, $databox, $this->container['phraseanet.appbox'], $input->getArgument('collname'));
|
$new_collection = \collection::create($this->container, $databox, $this->container['phraseanet.appbox'], $input->getArgument('collname'));
|
||||||
|
|
||||||
if ($new_collection && $input->getOption('base_id_rights')) {
|
if ($new_collection && $input->getOption('base_id_rights')) {
|
||||||
|
|
||||||
$query = new \User_Query($this->container);
|
$query = new \User_Query($this->container);
|
||||||
$total = $query->on_base_ids(array($input->getOption('base_id_rights')))->get_total();
|
$total = $query->on_base_ids(array($input->getOption('base_id_rights')))->get_total();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user