Fixed various bugs#598
Conversation
|
Tip You can preview the changes in the Playground Plugin build for a5279ff is ready 🛎️!
|
There was a problem hiding this comment.
Pull request overview
Fixes several PPOM field-group edge cases (notably around multiple attached groups and imported/legacy data) to address reported bugs in issue #652.
Changes:
- Add meta-id cleanup logic while loading fields and extend inline CSS/JS generation to support multiple PPOM groups.
- Adjust frontend field filtering to tolerate imported fields missing
ppom_id. - Prevent PHP notices in the conditional-logic admin UI by guarding
selected()calls withisset().
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| classes/ppom.class.php | Cleans up invalid attached group ids and aggregates inline CSS/JS across multiple groups. |
| classes/form.class.php | Changes per-group field filtering behavior to handle missing ppom_id. |
| classes/fields.class.php | Hardens conditional-rule select rendering against missing array keys (avoids notices). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@girishpanchal30 I’m not able to test this build because, after installing it, I can’t edit any PPOM field. I’m seeing this fatal error:
|
|
@poonam279 I have fixed it with the latest commit. Please check it and let me know if any changes are needed. Thanks! |
|
@girishpanchal30, I tested this and found these two things:
|
589101b to
8da5401
Compare
I have fixed it with the latest commit. Please check it.
For this issue, could you please share the CSV file or your instance details? I’m unable to reproduce it. |
|
@girishpanchal30, I checked the latest commit, and it fixed the CSS handling issue. Regarding the import data, I checked my exported file and found that the conditions were missing/incorrect there as well. After investigating further, I found that the issue is related to saving the conditions. If we add a condition to just one field , it didn't save. However, after adding a condition to a second field, the new condition overrides the previous condition on the other field. Here is a video demonstrating the issue: https://vertis.d.pr/v/38yM2u There is another scenario as well: if a field has only one option and we use it in a condition, the condition gets deleted after saving. Here is the video: https://vertis.d.pr/v/RaWt0k |
|
@poonam279, I have fixed it with the latest commit. Please check it and let me know if any changes are needed. |

Check before Pull Request is ready:
Closes https://github.com/Codeinwp/ppom-pro/issues/652