Skip to content

Commit

Permalink
Removing commented code as suggested for best practices.
Browse files Browse the repository at this point in the history
Co-authored-by: Max <max@schimmelmann.org>
  • Loading branch information
kadiiski and bytes-commerce authored Dec 11, 2024
1 parent 13690b3 commit 9ba0560
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Field/Configurator/BooleanConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ public function configure(FieldDto $field, EntityDto $entityDto, AdminContext $c
if ($isRenderedAsSwitch) {
// this happens when processing fields not for a specific entity (e.g. when
// rendering the filters from the 'index' page)
// if (null === $entityDto->getPrimaryKeyValue()) {
// $field->setCustomOption(BooleanField::OPTION_RENDER_AS_SWITCH, false);ю
// return;
// }

$crudDto = $context->getCrud();

Expand Down

0 comments on commit 9ba0560

Please sign in to comment.