J3 Issue ?
avatar angelovianajr
angelovianajr
3 Jul 2017

When using multiple fields on showon that use complex options, they does not recognize simultaneous use of OR e AND.

field1:1[AND]field2:1[OR]field3:0

In this case, they consider only the last comparison, field2:1[OR]field3:0

I'm testing this in joomla 3.7.2

avatar angelovianajr angelovianajr - open - 3 Jul 2017
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jul 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 Jul 2017
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jul 2017
Title
showon does not accept the AND and OR options at the same time.
[com_fields] showon does not accept the AND and OR options at the same time.
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Jul 2017
Category com_fields
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Jul 2017
Title
showon does not accept the AND and OR options at the same time.
[com_fields] showon does not accept the AND and OR options at the same time.
avatar joomla-cms-bot joomla-cms-bot - edited - 3 Jul 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Jul 2017

@laoneo can you please have a Look?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16954.

avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Jul 2017
Status New Information Required
avatar laoneo
laoneo - comment - 9 Jul 2017

This issue is not related to custom fields as we do not support the showon setting by now.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Jul 2017

thanks for Info, @laoneo.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Jul 2017

@angelovianajr can you please close this issue because of comment above?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16954.

avatar laoneo
laoneo - comment - 9 Jul 2017

I didn't say that the issue itself is wrong, just said that the issue is not related to custom fields.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 9 Jul 2017

sorry, missunderstood, @laoneo

avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Aug 2017
Category com_fields com_fields Feature Request
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Aug 2017

set Category "Feature Request" for "Shown on" in "com_fields".


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16954.

avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Aug 2017
Status Information Required Discussion
avatar angelovianajr angelovianajr - change - 1 Sep 2017
Title
[com_fields] showon does not accept the AND and OR options at the same time.
[Shown on] showon does not accept the AND and OR options at the same time.
avatar angelovianajr angelovianajr - edited - 1 Sep 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Nov 2017
Title
[Shown on] showon does not accept the AND and OR options at the same time.
[com_fields] [Shown on] showon does not accept the AND and OR options at the same time.
avatar joomla-cms-bot joomla-cms-bot - edited - 7 Nov 2017
avatar brianteeman brianteeman - change - 25 Mar 2018
Labels Added: J3 Issue
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar brianteeman brianteeman - change - 18 Aug 2018
Title
[com_fields] [Shown on] showon does not accept the AND and OR options at the same time.
[Shown on] showon does not accept the AND and OR options at the same time.
avatar brianteeman brianteeman - edited - 18 Aug 2018
avatar chrisdavenport
chrisdavenport - comment - 15 Mar 2019

Confirmed this bug is still present in Joomla 3.9.4 as I've just been bitten by it. The two cases that are incorrect are
field1:1[AND]field2:1[OR]field3:0
and
field1:1[OR]field2:1[AND]field3:0
both of which completely ignore the first comparison.
What is needed is proper left-right precedence and, ideally, brackets to override left-right precedence when required.

avatar joomla-cms-bot joomla-cms-bot - change - 15 Mar 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-03-15 15:39:56
Closed_By joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 15 Mar 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 15 Mar 2019
Closed_By joomla-cms-bot franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 15 Mar 2019
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 15 Mar 2019

closed as having Pull Request #24197

Add a Comment

Login with GitHub to post a comment