[#3638] Suspected issue with CB Conditional plugin

11 years 6 months ago - 11 years 6 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:

Please Log in to join the conversation.

11 years 6 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 to join the conversation.

11 years 6 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 to join the conversation.

11 years 6 months ago - 11 years 6 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.
The following user(s) said Thank You: nickr

Please Log in to join the conversation.

11 years 6 months ago #207364 by nickr
Brilliant - thanks.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.213 seconds

Facebook Twitter LinkedIn