Forum Replies Created
-
AuthorPosts
-
digitaalitoimisto
ParticipantYes, thanks you! Please hurry with it, lots of problems with it as it breaks the content if someone saves a post with cloneable fields.
September 5, 2024 at 5:21 PM in reply to: text_list type saved values not displaying in backend #46336digitaalitoimisto
ParticipantThis is bug related to cloning, the forum has multiple entries and the latest version is completely usable currently. Please revert back to 5.9.11 if you can, it works.
This issue has been since multiple days and to my knowledge no response from the team. This is bad for the product, which is a shame. metabox has been our go to plugin for ~200 projects but now I'm reverting all of them back and lots of problems with broken content due to this bug. If this was tested before release none of this would have happened. Perhaps the team has changed?
digitaalitoimisto
ParticipantWell, description is wrong in my first post ๐
Here illustration of key_value field. On 5.9.10 it's working, see this screenshot with var_export of $meta:

Here same with 5.10.0 and there is extra array layer added at some point, also empty string as first item, and now the fields do not show in the metabox because the array structure is different what the output code expects.

In both of the images data in database is what is shown in the first attachment, without extra array layer. The data was saved with 5.9. but saving data on 5.10 doesn't work either, it goes fine into database but var_export for $meta shows the same bad data structure.
Here is how the code looks to reproduce both the images above.

As per your blog post https://metabox.io/clone-empty-start/ and comments in code let believe this empty values are added only when there is no data saved in database, but this is clearly not the case.
Please fix the bug asap. Thanks.
digitaalitoimisto
ParticipantPerhaps related issue, key_value field is broken due to how code handles cloning.
digitaalitoimisto
Participantkey_value metabox is also broken, problem with cloning in code, perhaps related.
digitaalitoimisto
ParticipantWhy there is no edit ๐ cumbersome
digitaalitoimisto
ParticipantUgh, bold didn't work inside code and cant edit ๐ remove the tags of course, so the line should be
return get_current_screen() && get_current_screen()->id === 'attachment';
digitaalitoimisto
ParticipantMeanwhile, if its annoying, add the bolded part to the file and line in the error
private function is_attachment_edit_screen(): bool { return <strong>get_current_screen() &&</strong> get_current_screen()->id === 'attachment'; }digitaalitoimisto
ParticipantNoticed this as well, I've got >60k posts :S
It seems that the 'post' field, that allows selection of a post, metabox will query all available options for the field on every request. I think it should query available options only when the actual meta box field is being rendered.
I'm not using metabox frontend functions so I was able to narrow this problem to dashboard only by not registering metaboxes on the frontend requests.
-
AuthorPosts