Skip to content

Commit

Permalink
Product collection - Add url rewrite from different website
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-sviziev committed Jul 9, 2015
1 parent c028812 commit dc4d975
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,7 @@ protected function _addUrlRewrite()
$select = $this->getConnection()
->select()
->from(['u' => $this->getTable('url_rewrite')], ['u.entity_id', 'u.request_path'])
->where('u.store_id = ?', $this->_storeManager->getStore()->getId())
->where('u.store_id = ?', $this->_storeManager->getStore($this->getStoreId())->getId())
->where('u.is_autogenerated = 1')
->where('u.entity_type = ?', ProductUrlRewriteGenerator::ENTITY_TYPE)
->where('u.entity_id IN(?)', $productIds);
Expand Down

0 comments on commit dc4d975

Please sign in to comment.