src/FormField/Lookup.php
public function applyFilters()
    {
        if ($this->filters) {
            foreach ($this->filters as $k => $filter) {
                if (
                    isset($_GET[$filter['field']]) &&
                    !empty($_GET[$filter['field']]) &&
                    $_GET[$filter['field']] != $this->filterEmpty &&
                    @$_GET['filter'] != $filter['field']
                ) {
                    $this->model->addCondition($filter['field'], $_GET[$filter['field']]);
                }
            }
        }
    }
public function applyFilters()
    {
        if ($this->filters) {
            foreach ($this->filters as $k => $filter) {
                if (
                    isset($_GET[$filter['field']]) &&
                    !empty($_GET[$filter['field']]) &&
                    $_GET[$filter['field']] != $this->filterEmpty &&
                    @$_GET['filter'] != $filter['field']
                ) {
                    $this->model->addCondition($filter['field'], $_GET[$filter['field']]);
                }
            }
        }
    }
public function applyFilters ( ) { if ( $ this -> filters ) { foreach ( $ this -> filters as $ k => $ filter ) { if ( isset ( $ _GET [ $ filter [ 'field' ] ] ) && ! empty ( $ _GET [ $ filter [ 'field' ] ] ) && $ _GET [ $ filter [ 'field' ] ] != $ this -> filterEmpty && @ $ _GET [ 'filter' ] != $ filter [ 'field' ] ) { $ this -> model -> addCondition ( $ filter [ 'field' ] , $ _GET [ $ filter [ 'field' ] ] ) ; } } } }
Check if filtering is need.
Check if filtering is need .