diff --git a/src/Bundle/ChillActivityBundle/Form/ActivityType.php b/src/Bundle/ChillActivityBundle/Form/ActivityType.php index 9606250e6..8af7a204c 100644 --- a/src/Bundle/ChillActivityBundle/Form/ActivityType.php +++ b/src/Bundle/ChillActivityBundle/Form/ActivityType.php @@ -103,7 +103,7 @@ class ActivityType extends AbstractType if ($options['accompanyingPeriod']) { $accompanyingPeriod = $options['accompanyingPeriod']; } -dump($options['data']->getType()); + if ($activityType->isVisible('socialIssues') && $accompanyingPeriod) { $builder->add('socialIssues', EntityType::class, [ 'label' => $activityType->getLabel('socialIssues'),