Skip to content

Commit

Permalink
Merge branch 'hotfix/v1.0.19'
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jan 15, 2019
2 parents a13082b + d145b83 commit fb1191e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Roadiz/CMS/Forms/ExplorerProviderItemType.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ public function configureOptions(OptionsResolver $resolver)
$resolver->setAllowedTypes('explorerProvider', [ExplorerProviderInterface::class]);
$resolver->setDefault('max_length', 0);
$resolver->setDefault('min_length', 0);
$resolver->setDefault('multiple', true);
$resolver->setAllowedTypes('max_length', ['int']);
$resolver->setAllowedTypes('min_length', ['int']);
$resolver->setAllowedTypes('multiple', ['bool']);
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/Roadiz/CMS/Forms/RolesType.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ public function configureOptions(OptionsResolver $resolver)
$resolver->setDefaults([
'choices_as_values' => true,
'roles' => new ArrayCollection(),
'multiple' => false,
]);

$resolver->setRequired('entityManager');
$resolver->setAllowedTypes('multiple', ['bool']);
$resolver->setAllowedTypes('entityManager', [EntityManager::class]);
$resolver->setAllowedTypes('roles', [Collection::class]);

Expand Down
2 changes: 1 addition & 1 deletion src/Roadiz/Core/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class Kernel implements ServiceProviderInterface, KernelInterface, RebootableInt
const SECURITY_DOMAIN = 'roadiz_domain';
const INSTALL_CLASSNAME = InstallApp::class;
public static $cmsBuild = null;
public static $cmsVersion = "1.0.18";
public static $cmsVersion = "1.0.19";

/**
* @var null|Container
Expand Down

0 comments on commit fb1191e

Please sign in to comment.