diff --git a/src/Field/Configurator/BooleanConfigurator.php b/src/Field/Configurator/BooleanConfigurator.php index 7ef063639d..1d71c8821a 100644 --- a/src/Field/Configurator/BooleanConfigurator.php +++ b/src/Field/Configurator/BooleanConfigurator.php @@ -35,8 +35,6 @@ public function configure(FieldDto $field, EntityDto $entityDto, AdminContext $c $isRenderedAsSwitch = true === $field->getCustomOption(BooleanField::OPTION_RENDER_AS_SWITCH); if ($isRenderedAsSwitch) { - // this happens when processing fields not for a specific entity (e.g. when - // rendering the filters from the 'index' page) $crudDto = $context->getCrud();