-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
emptyOption for controller filters #3116
Comments
Mind explaining a bit more how this would work? |
Not at all. Like this: Lets say I have a Then Lets say the relation looks like this Stuff –> belongsTo -> Status. This can be done as a field in the backend like this:
Now I want to be able to filter the list based on this. Including the Stuff with status_id NULL or 0. And preferably like this:
Than I want it to list the Statuses like it does right now, but add an emptyOption that adds the string maker.plugin::lang.string.none to the list and adds null (or 0) to the How to this technically I have no idea ;) Explained my self enough? |
This issue will be closed and archived in 3 days, as there has been no activity in the last 30 days. If this issue is still relevant or you would like to see action on it, please respond and we will get the ball rolling. |
This issue will be closed and archived in 3 days, as there has been no activity in the last 30 days. If this issue is still relevant or you would like to see action on it, please respond and we will get the ball rolling. |
This issue will be closed and archived in 3 days, as there has been no activity in the last 30 days. If this issue is still relevant or you would like to see it actioned, please respond and we will re-open this issue. |
This issue will be closed and archived in 3 days, as there has been no activity in the last 30 days.
|
This issue will be closed and archived in 3 days, as there has been no activity in the last 30 days. |
This issue will be closed and archived in 3 days, as there has been no activity in the last 30 days. |
This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
This issue will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
This was easy enough to implement so I just did it. You can expect it in the next update. Thanks @hambern 🙏 |
Expected behavior
Just like I can add an emptyOption to fields in the backend forms i would like to be able to filter the fields with an emptyOption as well. Like this:
Actual behavior
No empty option shows up
Reproduce steps
October build
423
The text was updated successfully, but these errors were encountered: