Skip to content

Commit

Permalink
address issue #95 scoping the column to product id
Browse files Browse the repository at this point in the history
  • Loading branch information
bxfocht-godaddy committed Nov 20, 2019
1 parent ca45d50 commit 95ef77f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-sync.php
Expand Up @@ -154,7 +154,7 @@ private function sync_product_meta() {

foreach ( (array) $products as $product ) {

$post_id = array_search( $product->id, $imported, true );
$post_id = array_search( $product->id, array_column( $imported, 'id' ), true );

if ( false === $post_id ) {

Expand Down

0 comments on commit 95ef77f

Please sign in to comment.