Skip to content

Commit

Permalink
bug #6634 fixes #6554: Removing fix for pretty url filters as it brea…
Browse files Browse the repository at this point in the history
…ks render… (kadiiski)

This PR was squashed before being merged into the 4.x branch.

Discussion
----------

fixes #6554: Removing fix for pretty url filters as it breaks render…

Resolving #6554

Commits
-------

fc09ee8 fixes #6554: Removing fix for pretty url filters as it breaks render…
  • Loading branch information
javiereguiluz committed Jan 4, 2025
2 parents b8e885f + fc09ee8 commit bd9e147
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Field/Configurator/BooleanConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +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)
if (null === $entityDto->getPrimaryKeyValue()) {
$field->setCustomOption(BooleanField::OPTION_RENDER_AS_SWITCH, false);

return;
}

$crudDto = $context->getCrud();

Expand Down

0 comments on commit bd9e147

Please sign in to comment.