diff --git a/src/Controller/Component/CRUDComponent.php b/src/Controller/Component/CRUDComponent.php index 3ec060e..0ed15e0 100644 --- a/src/Controller/Component/CRUDComponent.php +++ b/src/Controller/Component/CRUDComponent.php @@ -390,7 +390,7 @@ class CRUDComponent extends Component protected function setFilteringContext($contextFilters, $params) { $filteringContexts = []; - if (!empty($contextFilters['allow_all'])) { + if (!isset($contextFilters['allow_all']) || $contextFilters['allow_all']) { $filteringContexts[] = ['label' => __('All')]; } if (!empty($contextFilters['fields'])) {