Skip to Content Skip to Menu

[#3638] Suspected issue with CB Conditional plugin

  • nickr
  • nickr
  • OFFLINE
  • Posts: 49
  • Thanks: 2
  • Karma: 0
12 years 3 months ago - 12 years 3 months ago #207339 by nickr
Not sure if this is my usage or if it is a genuine error with the plugin so posting here.

I'm trying to hide a Tab when any of 5 conditions are not met. I have 5 fields that must not be empty in order for the Tab to show. What I've found is that the 5th condition is always ignored in the Tab Conditional. I've determined this by changing the fields around in the 5 conditions for the Tab and in every case it ignores the last of the conditions, regardless of which field is in it.

The only thing that made me check here rather than report as a bug is that I am seeing an error in CB Conditional Plugin Tools for this Tab (ID=36) - attached as image.

Attachments:
Last edit: 12 years 3 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
12 years 3 months ago #207355 by krileon
The error means you have fields on a tab that hides that tab. This effectively means a tab is hiding it self and it won't be able to reverse the condition as once the tab is hidden the fields that caused it to hide will also hide (as they're on the tab that's being hidden). It's informing you of this to ensure you don't lock a tab from being used.

The warning means you have a conditional with "Equal To" and the value is empty. You should use "Is Empty" or "Is Not Empty".

The info means you have step by step enabled, but aren't validating each step (so they could skip from step 1 to step 4 if they wanted without completing the previous). It's not an issue. It's just informing you of this fact.

As for the 5th condition not working was able to confirm this as a bug and have created the below bug ticket for further investigation.

forge.joomlapolis.com/issues/3638


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.

  • nickr
  • nickr
  • OFFLINE
  • Posts: 49
  • Thanks: 2
  • Karma: 0
12 years 3 months ago #207357 by nickr
Great - thanks for the response.

In terms of the 5th condition - looks from the Forge bug list that you've fixed this for release 1.8.3 - any idea when this will be available? If not in the next couple of days then can you PM me the file ahead of release or let me know what code needs to change to fix it now?

Thanks again.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
12 years 3 months ago - 12 years 3 months ago #207363 by krileon

any idea when this will be available?

Later this week; probably Friday.

If not in the next couple of days then can you PM me the file ahead of release or let me know what code needs to change to fix it now?

Quickfix is to simply edit getTabConditional and getFieldConditional in cbconditional.class.php then find "for ( $i = 1, $n = 5; $i < $n; $i++ ) {" and change it to "for ( $i = 1, $n = 5; $i <= $n; $i++ ) {".


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.
Last edit: 12 years 3 months ago by krileon.
The following user(s) said Thank You: nickr

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

  • nickr
  • nickr
  • OFFLINE
  • Posts: 49
  • Thanks: 2
  • Karma: 0
12 years 3 months ago #207364 by nickr
Brilliant - thanks.

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

Moderators: beatnantkrileon
Powered by Kunena Forum