• Resolved Windurin

    (@windurin)


    Hi. I’m not entirely sure which update this issue arose from because I only use the Post Object field on a handful of sites (I mostly use the Relationship field), but when using the Allow Custom Value/Save option (typing a new value and clicking on it so that becomes the title of the new post), it’s creating multiple copies of the new post. So for example, 5 posts with the same title but incrementing slugs .e.g. 5 posts with the title ‘Test’ with the slugs: test, test-2, test-3, test-4 and test-5

    Can you please look into this? It’s happening on all my sites that use ACF Extended so it’s not unique to one site. Thanks.

    • This topic was modified 5 years, 1 month ago by Windurin.
    • This topic was modified 5 years, 1 month ago by Windurin.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback! In fact, this bug was introduced in the latest patch. I’m currently working on the upcoming update and this issue will be fixed in the new version.

    In the meantime, you can apply this hotfix to prevent this issue:

    In the file /acf-extended/includes/fields/field-post-object.php line:144, add the following code:

    if(in_array($post_id, array('acfe/validate_save', 'acfe/save')))
        return $value;
    

    I’m working hard to release the new version, it should be out tomorrow if everything goes well.

    Sorry for the inconvenience.

    Regards.

    Thread Starter Windurin

    (@windurin)

    Hi. Thanks for the response. No problem. I’ll just wait for the update. Cheers.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Just a heads up to let you know that the latest 0.8.8.2 update fix the issue.

    Have a nice day!

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Post Object Allow Custom Value Is Adding Multiple Copies’ is closed to new replies.