diff --git a/Form/Type/PickThirdPartyType.php b/Form/Type/PickThirdPartyType.php index adccdaef7..98d3e585b 100644 --- a/Form/Type/PickThirdPartyType.php +++ b/Form/Type/PickThirdPartyType.php @@ -72,7 +72,7 @@ class PickThirdPartyType extends AbstractType return false; } // return false if one element is not contained in allowed types - return count(\array_diff($this->typesManager->getTypes(), $types)); + return count(\array_diff($types, $this->typesManager->getTypes())) === 0; }) ;