chg: [Component:CRUD] Removed comment and init correct variable type

pull/93/head
Sami Mokaddem 2022-02-21 11:51:05 +01:00
parent aeac86cb52
commit bce4c5fde9
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 2 deletions

View File

@ -1077,7 +1077,7 @@ class CRUDComponent extends Component
$filteringTags = !empty($params['filteringTags']) && $this->taggingSupported() ? $params['filteringTags'] : '';
unset($params['filteringTags']);
$customFilteringFunction = '';
$chosenFilter = '';
$chosenFilter = [];
if (!empty($options['contextFilters']['custom'])) {
foreach ($options['contextFilters']['custom'] as $filter) {
if ($filter['label'] == $filteringLabel) {
@ -1112,7 +1112,6 @@ class CRUDComponent extends Component
}
}
if (!empty($params['relatedFilters'])) {
// $query->group("{$this->TableAlias}.id");
foreach ($params['relatedFilters'] as $filter => $filterValue) {
$activeFilters[$filter] = $filterValue;
$filterParts = explode('.', $filter);