diff --git a/bin/console b/bin/console index ea8fd64e55..8a5fce126e 100755 --- a/bin/console +++ b/bin/console @@ -1,4 +1,4 @@ -#!/usr/bin/php +#!/usr/bin/env php base_id); $this->total_records = $collection->get_record_amount(); $collection->empty_collection(200); - $this->records_done +=200; + $this->records_done += $this->total_records; $this->setProgress($this->records_done, $this->total_records); if ($this->total_records == 0) diff --git a/lib/unitTest/userTest.php b/lib/unitTest/userTest.php new file mode 100644 index 0000000000..82e4fc5a3d --- /dev/null +++ b/lib/unitTest/userTest.php @@ -0,0 +1,49 @@ +assertFalse(User_Adapter::get_usr_id_from_email(null)); + try + { + $appbox = appbox::get_instance(); + + self::$user->set_email(null); + + $this->assertFalse(User_Adapter::get_usr_id_from_email(null)); + self::$user->set_email(''); + $this->assertFalse(User_Adapter::get_usr_id_from_email(null)); + self::$user->set_email('noonealt1@example.com'); + $this->assertEquals(self::$user->get_id(), User_Adapter::get_usr_id_from_email('noonealt1@example.com')); + } + catch(Exception $e) + { + $this->fail($e->getMessage()); + } + $this->assertFalse(User_Adapter::get_usr_id_from_email(null)); + } +} \ No newline at end of file diff --git a/lib/version.inc b/lib/version.inc index 890fb380d0..9a6acf9259 100644 --- a/lib/version.inc +++ b/lib/version.inc @@ -15,5 +15,5 @@ * @license http://opensource.org/licenses/gpl-3.0 GPLv3 * @link www.phraseanet.com */ -define('GV_version', '3.5.2.0'); +define('GV_version', '3.5.3.0'); define('GV_version_name', 'Baobab'); diff --git a/www/admin/task2.php b/www/admin/task2.php index 1772aac2f1..2ea0358ada 100644 --- a/www/admin/task2.php +++ b/www/admin/task2.php @@ -76,4 +76,10 @@ function stripdoublequotes($value) } $twig = new supertwig(); $twig->addFilter(array('stripdoublequotes'=>'stripdoublequotes')); + +if(!$task->getGraphicForm()) +{ + $parm['view'] = 'XML'; +} + $twig->display('admin/task.html', array('task'=>$task, 'view'=>$parm['view']));