You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a tab field's _id (or id) happens to be the same as an existing numeric key in the $fields array, this will overwrite the existing entry silently.
2. Missing Group Subfield Handling
The PR title mentions "preserve tab fields and group subfields during JSON import", but the changes only address tab fields. There is no handling added for preserving group subfields. The convert_fields_for_builder method recursively processes group subfields (line 508-510), but the structural keys in Field.php ('_id', 'fields', 'tab') don't specifically address group subfield preservation.
3. Incomplete Tab Array Check in unparse_tabs() (MetaBox.php:189-192)
The original code incorrectly added $tab_field (the entire field array) instead of $field['tab'] (the tab ID string) to $added_tabs. While this bug is fixed, there's still an edge case: if multiple different tab labels map to the same tab ID, only the first encountered tab field will be added.
4. Potential Null Coalesce Issue in convert_fields_for_builder() (MetaBox.php:499)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://app.asana.com/1/11768486970802/project/17125277541504/task/1214591495083397