Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Correction de la récuperation de l'id distant et de l'url lors de la …
Browse files Browse the repository at this point in the history
…creation d'un produit
  • Loading branch information
kkhelifa-opendsi committed Mar 24, 2023
1 parent 06c5f0e commit 660fce8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3373,8 +3373,8 @@ public function createRemoteProduct($object)
$remote_id = '';
$remote_url = '';
if (is_array($results) && count($results) > 0) {
$remote_id = $results[0]->id;
$remote_url = $results[0]->permalink;
$remote_id = $results[0]['id'];
$remote_url = $results[0]['permalink'];
if (!$this->updateRemoteProduct($remote_id, $object))
return false;
} else {
Expand Down

0 comments on commit 660fce8

Please sign in to comment.