From 53da50ba9993d830a0046f73a8f363b5ab4bfcbb Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Wed, 14 Jan 2015 14:41:16 +0100 Subject: [PATCH] Fix collection creation --- lib/Alchemy/Phrasea/Command/CreateCollection.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/Alchemy/Phrasea/Command/CreateCollection.php b/lib/Alchemy/Phrasea/Command/CreateCollection.php index a929288986..2b7ba6194e 100644 --- a/lib/Alchemy/Phrasea/Command/CreateCollection.php +++ b/lib/Alchemy/Phrasea/Command/CreateCollection.php @@ -45,13 +45,11 @@ class CreateCollection extends Command protected function doExecute(InputInterface $input, OutputInterface $output) { - $databox = $this->container['phraseanet.appbox'] - ->get_databox((int) $input->getArgument('databox_id')); + $databox = $this->container['phraseanet.appbox']->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')) { - $query = new \User_Query($this->container); $total = $query->on_base_ids(array($input->getOption('base_id_rights')))->get_total();