Odd Condotional Logic Issues on 1.15.5
Support › MB Conditional Logic › Odd Condotional Logic Issues on 1.15.5
- This topic has 6 replies, 2 voices, and was last updated 3 years, 2 months ago by
Austin Passy.
-
AuthorPosts
-
February 18, 2022 at 6:08 AM #33969
Austin Passy
ParticipantCurrently there are no issues in 1.15.3, but I see in the the following:
Fix blank page in Oxygen Fix conditional logic not running due to window.load event not firing Fix not show/hide meta box in the front end Improve code using ES6
I have done a comparison, but don't see anything immediate that stands out. I will include the condition and field array below (gist).
https://gist.github.com/thefrosty/02f59b42a40dcf06026fa0e14124c656
The odd thing is that it looks like the it shows on load (normal), then conditional logic hides it. But the condition (previously working for the page in question) won't show it again, but I can get it to show using WordPress' "screen Options" toggle.
Video (expires in 14 days): https://webmshare.com/gwXOv
February 18, 2022 at 11:12 PM #33988Long Nguyen
ModeratorHi,
The problem happens because the meta box
Program v1
is enabled by default in the Screen Options box. You can see the meta boxProgram v2
is disabled by default and it works when selecting the API version.So please disable the meta box
Program v1
in Screen Options > Save post and re-check this issue.February 19, 2022 at 2:39 AM #33994Austin Passy
ParticipantThanks, but that is not the case here. I was toggling it on and off just for the video.
As soon as I revert down to AIO 1.15.3, there is no issue. 1.15.5 there is.
February 19, 2022 at 2:50 AM #33995Austin Passy
ParticipantOkay, I have tracked it down to the changes in the meta-box-conditional-logic class
MB_Conditional_Logic
from<script type="html/template"
to<template
.At this point I do not know why that is was is breaking my condition, but will have to look into it next week. If you have some insight to add hear please leave your comments.
February 23, 2022 at 4:43 AM #34061Austin Passy
ParticipantDiff comparison: https://imgur.com/a/0u8ezns
February 23, 2022 at 6:15 PM #34076Long Nguyen
ModeratorHi,
Can you please share all the code that creates the meta boxes and conditional logic on your site? I've tested on my site with this code https://pastebin.com/c4t6gvQB
but do not see any issue.I found a commit that relates to this issue https://monosnap.com/file/a5npoXPcAe7FdWAhLahlpfUGXn2xrT
Do you use Oxygen builder on your site?February 23, 2022 at 11:27 PM #34081Austin Passy
ParticipantThanks, this better represents our fields: https://pastebin.com/6f5KKpmA
But I can't create (for testing purposes) ALL the fields across 20+ post types we have that also have conditions. At the current time, it seems the fields I have shared are the only ones affected, so I will continue to look into what the culprit might be.
Note that our option is an int value, and it only seems to be an issue with
1
so might first thought was a boolean conversion issue with wp_json_encode.Thanks for looking. We are not using Oxygen btw.
-
AuthorPosts
- You must be logged in to reply to this topic.