Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the community forum?
All Topics
Daniel

Remove all options from filter dropdown except "empty"/"not empty"

i’d like to use only basic filter options for some filter dropdown fields to use only the basic “empty”/”not empty” options.

but using the filter ‘cac/addon/filtering/options’ and removing all options results for this dropdown hides the filter field completely.

how can this be achieved?

thanks in advance,

daniel

4 years, 4 months ago
Stefan
Developer

That makes sense, but unfortunately this is currently not possible.
Currently when the options are empty the dropdown is not shown.
Better would be that we show the filter when there are options or the “empty/not empty” options is enabled.
I’ve made a ticket for this and fixed it already but before I merge it to the core, I’d like to discuss it with the team to see if was not intended.
https://github.com/codepress/admin-columns-issues/issues/460

In the meanwhile you have to return at least 1 option to make it work. Maybe an empty value/label/ or extra label, but the $options variable has to be not empty.

4 years, 4 months ago
Daniel

Hey Stefan,

thanks for your solution proposal.

I hope that your fix will be merged into core soon since this makes totally sense to me.

Could you update me on this as soon as you decided how to handle this from now on?

4 years, 4 months ago
Tobias
Developer

If you get the latest version of ACP (3.8.4.1) it should be fixed.

4 years, 4 months ago
Daniel

thanks,
that fixed it! =)

4 years, 4 months ago
Stefan
Developer

Great I will close this ticket

4 years, 4 months ago

You must be logged in to reply to this topic.