Clone Field Issue
-
I’m noticing what seems to be a bug in Meta Box 4.2 on cloned fields.
Here’s how it works:
1) Added a couple cloned fields. Saved.
2) Deleted all the cloned fields and emptied out the final box. Saved.
3) Added info back to the field (either in the one box or multiples). Saved.Result:
rwmb_meta() now returns data with the array starting on 1 instead of 0.So, I have an array test that goes something like:
if (! empty($ticket_array[0])) { do stuff } else { echo "There is nothing"; }
This will return, “There is nothing” because array[0] will always be empty after the previous steps. Works normally if you haven’t deleted the fields previously.
Any fix for this or am I crazy? I could code around it be I’d rather a fix on the plugin end.
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Clone Field Issue’ is closed to new replies.