diff --git a/lib/Alchemy/Phrasea/Form/Login/PhraseaRegisterForm.php b/lib/Alchemy/Phrasea/Form/Login/PhraseaRegisterForm.php index b7d17c8387..4fa11c7c95 100644 --- a/lib/Alchemy/Phrasea/Form/Login/PhraseaRegisterForm.php +++ b/lib/Alchemy/Phrasea/Form/Login/PhraseaRegisterForm.php @@ -111,7 +111,7 @@ class PhraseaRegisterForm extends AbstractType 'expanded' => false, 'constraints' => array( new Assert\Choice(array( - 'choices' => array_flip($baseIds), + 'choices' => $baseIds, 'minMessage' => _('You must select at least %s collection.'), 'multiple' => true, 'min' => 1, diff --git a/lib/classes/task/period/subdef.php b/lib/classes/task/period/subdef.php index 1fd40f1b1b..2a34920231 100644 --- a/lib/classes/task/period/subdef.php +++ b/lib/classes/task/period/subdef.php @@ -221,13 +221,13 @@ class task_period_subdef extends task_databoxAbstract