Skip to Content Skip to Menu

[#8115] Conditions -> Field: User -> Bug or Not?

  • cez
  • cez
  • OFFLINE
  • Posts: 37
  • Thanks: 10
  • Karma: 1
4 years 2 months ago - 4 years 2 months ago #319959 by cez
Hi,

In brief: Conditions -> Field: User
regardless of the Displayed User / Viewing User selection, the condition always works as Displayed User

I'm not sure if this is a bug or I don't understand how it works?

I noticed on my test environment, with recent versions of joomla! and CB, but also tested today (2020/08/12) at demo.cbdemosites.com/ and the effect is the same, so Joomla, CB, PHP and MYSQ versions are: Joomla! 3.9.20 — © 2020 Community Builder Demo Site, Your version is 2.4.6, Latest version 2.4.6.

At demo.cbdemosites.com:
1. As an Administrator, I created the Tab "test_1" and text Field "test_1" on it.
2. I set conditions for both Tab and Field:
Integrations -> CB Conditional
Display: Tab/Field conditional show
Conditions
Field: User
User: Displayed User/Viewing User (<- I tested it by switching)
Operator: Is
Users: 1
Debug: Yes

Next I login as Demo
and regardless of the Displayed User / Viewing User selection, the condition always works as Displayed User:

demo.cbdemosites.com/profiles/demo (243)
Tab 66 condition 1 (AND) of 1 (OR) failed to match with: "243" (customusers) Is In "1"

demo.cbdemosites.com/profiles/susan (229)
Tab 66 condition 1 (AND) of 1 (OR) failed to match with: "229" (customusers) Is In "1"

I expected a message and action
Tab 66 condition 1 (AND) of 1 (OR) failed to match with: "243" (customusers) Is In "1" (with demo user id)
at susan profile (229) with Conditions -> Field: User -> User: Viewing User

with the condition for "field" display is the same problem as with "Tab".

Best wishes
cez
Last edit: 4 years 2 months ago by krileon. Reason: Added [#8115] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48435
  • Thanks: 8275
  • Karma: 1443
4 years 2 months ago #319964 by krileon
Replied by krileon on topic Conditions -> Field: User -> Bug or Not?
Yup, looks bugged. It's checking the wrong parameter. This is now fixed in latest build. Thank you for letting us know. :)

forge.joomlapolis.com/issues/8115


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum