chg: [Component:CRUDComponent] Default `allow_all` to true when context filtering

pull/37/head
mokaddem 2020-12-15 16:44:39 +01:00
parent 30246dfc70
commit 2d26bc597f
1 changed files with 1 additions and 1 deletions

View File

@ -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'])) {