Skip to content

Commit

Permalink
Merge pull request #2 from gplanchat/patch-1
Browse files Browse the repository at this point in the history
Fixed fatal error on product save
  • Loading branch information
24198 authored May 25, 2018
2 parents 7f56a0d + d0deb1e commit 0d337fe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ private function filterEntities(array $entities, $class)
/** @var SalesChannel $salesChannel */
$salesChannel = $entity->getSalesChannel();
if ($salesChannel &&
$salesChannel->getIntegrationChannel()->getType() === OroCommerceChannelType::TYPE ) {
$salesChannel->getIntegrationChannel() &&
$salesChannel->getIntegrationChannel()->getType() === OroCommerceChannelType::TYPE) {
$result[$product->getSku()] = $product;
}
} elseif ($class === Product::class) {
Expand Down

0 comments on commit 0d337fe

Please sign in to comment.