Skip to content

Commit

Permalink
Merge pull request #8 from Strategery-Inc/v/saving-product-bugfix
Browse files Browse the repository at this point in the history
Fix for a crash when trying to save a Stockbase product with image sync enabled.
  • Loading branch information
gsomoza authored Oct 10, 2018
2 parents f0346eb + d97f665 commit 2100408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Observer/ProductSaveAfterObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function execute(EventObserver $observer)
// validate returned images:
if (is_array($images->{'Items'}) && count($images->{'Items'}) > 0) {
// download and save the images locally:
$this->imagesHelper->saveProductImages($images->{'Items'});
$this->imagesHelper->saveProductImages($images->{'Items'}, $client);
$this->logger->debug('New images synchronized.');
}
}
Expand Down

0 comments on commit 2100408

Please sign in to comment.