From 31e1bfdf802fe6acd6ac5571eaef9c77643c91b6 Mon Sep 17 00:00:00 2001 From: nobohan Date: Mon, 4 Jul 2022 16:19:03 +0200 Subject: [PATCH] export: cast role as string in PickCenterType --- src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php b/src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php index 1c6c01f72..9c36d452f 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php @@ -80,7 +80,7 @@ class PickCenterType extends AbstractType $export = $this->exportManager->getExport($options['export_alias']); $centers = $this->authorizationHelper->getReachableCenters( $this->user, - $export->requiredRole()->__toString() + (string) $export->requiredRole() ); $builder->add(self::CENTERS_IDENTIFIERS, EntityType::class, [