Issue with filtering on custom "list"-field when...

Search
Other Bug Reports questions
Forum

Issue with filtering on custom "list"-field when value=0

Ton van Loon's Avatar Ton van Loon
There seems to be an issue with filtering on a custom "list"-field when the value=0

I have a custom list-field "status" containing 5 entries:

Text : Value
Status 0 : 0
Status 1 : 1
Status 2 : 2
Status 3 : 3
Status 4 : 4

I want to filter on "status" using this syntaxes:
{articles status="0"} [title]{/articles}
{articles status="1"} [title]{/articles}
{articles status="2"} [title]{/articles}
{articles status="3"} [title]{/articles}
{articles status="4"} [title]{/articles}
or syntax:
{articles status:value="0"} [title]{/articles}
{articles status:value="1"} [title]{/articles}
{articles status:value="2"} [title]{/articles}
{articles status:value="3"} [title]{/articles}
{articles status:value="4"} [title]{/articles}
Issue: No output is given when filtering on status="0" Filtering on status 1 to 4 gives expected outcome.


When I avoid using a 0 as a value and change the setup to this:
Text : Value
Status 5 : 5
Status 1 : 1
Status 2 : 2
Status 3 : 3
Status 4 : 4

Using this code:
{articles status="5"} [title]{/articles}
{articles status="1"} [title]{/articles}
{articles status="2"} [title]{/articles}
{articles status="3"} [title]{/articles}
{articles status="4"} [title]{/articles}

Now all situations give the expected outcome.


Environment:
- J4.0.3
- Articles Anywhere v11.1.1PRO-dev2165300

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Ton van Loon's Avatar Ton van Loon
Issue not resolved in Articles Anywhere v11.1.3-dev2169889

Used code to test
<h3><b>STATUS 0</h3>
{articles status="0" separator="<br/>"} [title] <b> Category: </b>[category]{/articles}<br/><br/>
<h3><b>STATUS 1</h3>
{articles status="1" separator="<br/>"} [title] <b> Category: </b>[category]{/articles}<br/><br/>
<h3><b>STATUS 2</h3>
{articles status="2" separator="<br/>"} [title] <b> Category: </b>[category]{/articles}<br/><br/>
<h3><b>STATUS 3</h3>
{articles status="3" separator="<br/>"} [title] <b> Category: </b>[category]{/articles}<br/><br/>
<h3><b>STATUS 4</h3>
{articles status="4" separator="<br/>"} [title] <b> Category: </b>[category]{/articles}<br/><br/>

See outcome online: sta.vanloon.net/index.php/tst/case-c-eva...eld-status-0-1-2-3-4
Articel ID = 81

The status custom field is set on tab "Voorstelling"
Peter van Westen's Avatar Peter van Westen ADMIN
It is fixed on your setup and in latest development release on:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Ton van Loon's Avatar Ton van Loon
Thank you. Please explain briefly what is changed in the setup (which setup?) so I can learn, for I will work on other joomla implementations with Articles Anywhere
Peter van Westen's Avatar Peter van Westen ADMIN
I mean, I installed the dev version on the 'sta' website. So the issue is fixed on that setup.
The fix will of course be included in the next release.

Little note on the separator:
You can use HTML directly in the separator attribute in the WYSIWYG editor.
So this also works:
separator="&lt;br/&gt;"
But instead of using the separator attribute, you can also just simply add a break before the closing {/articles} tag. I have done this in your test article, so you can see how it is done.
Please post a rating at the Joomla! Extensions Directory
Ton van Loon's Avatar Ton van Loon
Thank you very much! Great service!
Now I'll start working on multiple filters.... I hope I don't have to bother you again with that...! 🙂
You can only post on this forum if you log in