• Resolved dgtg

    (@dgtg)


    There’s a small issue in the relationship ACF data importer (class-uci-acf-data-import.php) that’s preventing proper data lookup:

    On line 169 and 302:
    “$relation_id = $wpdb->get_col($wpdb->prepare(“select id from $wpdb->posts where post_title = %s”, $relVal));”

    The non-trimmed value (“$relVal”) for the post_title comparison is being used to select the ID of a post type, which means that cell can’t have any spaces in the comma separated values or they will never match.

    There is a variable declared above (“$relationTerm”, lines 158 and 209) which contains the trimmed value, but it is not used during Post relationship lookups, only taxonomy lookups so it seems like the current behavior is not intended.

    I modified my build to fix it, but figured it be worth noting here.

    • This topic was modified 7 years, 9 months ago by dgtg.
Viewing 1 replies (of 1 total)
  • Hi,

    Thank you for using our WP Ultimate CSV Importer plugin.

    We have implemented the mentioned changes in our plugin, and the changes will be available in our plugin from the next version release. Your contribution helped us a lot.

    Thanks.

Viewing 1 replies (of 1 total)

The topic ‘Bug in ACF Data Import’ is closed to new replies.