Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Remove restriction on filter fields only being fields displayed #53

Open
richsage opened this issue Nov 21, 2011 · 0 comments
Open

Remove restriction on filter fields only being fields displayed #53

richsage opened this issue Nov 21, 2011 · 0 comments

Comments

@richsage
Copy link
Contributor

If I display the following fields in my List eg:

firstName
lastName
country

by using:

$this->addFields(array(
        'firstName,
        'lastName',
        'country',
))

and I want to filter (advanced) on another, non-displayed field, I'm not able to since the getAdvancedFilters method in DataManager\Base\Action\ListAction.php uses the getFields() method to iterate over. Since this method is private, I can't override it to provide my own implementation.

Solution: Either allow this to be configurable via a closure, or switch private for protected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant