Skip to content

Commit

Permalink
Merge pull request #42 from Codaone/master
Browse files Browse the repository at this point in the history
Fix saving stockist to all stores
  • Loading branch information
ClaudiuCreanga authored Aug 9, 2018
2 parents 2198214 + 87bca72 commit 91e0364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/StockistRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function __construct(
public function save(StockistInterface $stockist)
{
/** @var StockistInterface|\Magento\Framework\Model\AbstractModel $stockist */
if (empty($stockist->getStoreId())) {
if ($stockist->getStoreId() == "") {
$storeId = $this->storeManager->getStore()->getId();
$stockist->setStoreId($storeId);
}
Expand Down

0 comments on commit 91e0364

Please sign in to comment.