splitbrain / dokuwiki-plugin-data

Add and query structured data in your DokuWiki
http://www.dokuwiki.org/plugin:data
GNU General Public License v2.0
50 stars 34 forks source link

filteror doesn't work with non-wildcard operators #230

Open GlitterHorn opened 2 years ago

GlitterHorn commented 2 years ago

I took a look at the source and can't figure out why it's not working as expected.

The filteror parameter doesn't work with non-wildcard operators. I want to be able to do something like:

---- datatable ----
cols:%pageid%,effect_tag,deity_tag,element_tag,planet_tag,energy_tag,gender_tag
filter : %pageid% *~ hibiscus
or : %pageid% = rose
or : %pageid% *~ chicory
----

With this filter, the page named rose doesn't appear in the results. If I use a second = operator, I get no results at all. The SQL generated seems to be using AND instead of OR with these operators.