mcguffin / acf-quickedit-fields

WordPress Plugin implementing Column Displaying, QuickEdit and BulkEdit for Advanced Custom Fields (ACF)
https://wordpress.org/plugins/acf-quickedit-fields/
GNU General Public License v3.0
359 stars 49 forks source link

"Post not found" message in column on Post Object field #147

Closed sswany closed 1 year ago

sswany commented 1 year ago

Using 3.2.7 of the plugin and 6.1.6 of ACF free version. I have a custom post type called "Team Member" that I link to standard Posts through a Post Object field type in ACF. When I have the field turned on as a column, I correctly see the name of the "Team Member" and it is linked to the Post itself, but I also get a message next to it that says "(Post _____ not found)" where the blank is the post name.

From what I can tell it's working correctly, just not sure why it's also telling me it can't be found.

Thanks!

sswany commented 1 year ago

Closed & thought it wasn't happening. But am seeing the issue.

plesecq commented 1 year ago

Hello I'm having this issue as well. When the post object field is empty I would expect en empty column or "-" or something like that. I don't know when the label "Post ____ not found" is supposed to be displayed, maybe when a linked object is not a WP_Post, but it is not my case.

Thanks !

MarcGuay commented 1 year ago

Caused by this commit: https://github.com/mcguffin/acf-quickedit-fields/commit/e42f11478c6aefa54c7b2adbd74260fd39440afd. get_value now returns an array which is looped through by render_list_column which calls render_list_column_item_value_post for each element on the array and since the second element is the title of the post it fails the "is a WP_Post" check and displays the error message.

MarcGuay commented 1 year ago

I'm still experiencing this issue with 3.2.9

pixel-kat commented 1 year ago

Experiencing this issue as well with Version 3.2.9

marceldarvas commented 10 months ago

I am also having the same issue with a Post Object field on Version 3.3.0

What I have found is that if data in DB is serialized, it works fine. If it's post ID only, then it returns the Post with a working link, followed by ({POST_NAME} not found)