fix: [component:CRUD] Default custom contextual filters do not override search parameters anymore
parent
00c1ae616f
commit
eb6dec8b64
|
@ -1296,7 +1296,7 @@ class CRUDComponent extends Component
|
|||
{
|
||||
if (empty($params['filteringLabel']) && !empty($options['contextFilters']['custom'])) {
|
||||
foreach ($options['contextFilters']['custom'] as $contextFilter) {
|
||||
if (!empty($contextFilter['default'])) {
|
||||
if (!empty($contextFilter['default']) && empty($params)) {
|
||||
$params['filteringLabel'] = $contextFilter['label'];
|
||||
$this->Controller->set('fakeFilteringLabel', $contextFilter['label']);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue