Skip to content

Commit 00a073c

Browse files
committed
Fixed setStoreId() on null error.
1 parent 2896190 commit 00a073c

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [1.2.2] - 2018-10-02
8+
### Changed
9+
- fixed setStoreId() on null error
10+
711
## [1.2.1] - 2018-09-25
812
### Changed
913
- fixed compilation issues

Console/Command/RegenerateUrlRewritesAbstract.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -378,13 +378,11 @@ protected function resetUrlRewritesDataMaps($category)
378378
protected function resetCategoryProductsUrlKeyPath($category, $storeId)
379379
{
380380
$productCollection = $this->_productCollectionFactory->create();
381-
382381
$productCollection->setStoreId($storeId);
383382
$productCollection->addAttributeToSelect('entity_id');
384383
$productCollection->addCategoriesFilter(['eq' => [$category->getEntityId()]]);
385-
386-
387384
$productCollection->setPageSize(100);
385+
388386
$pageCount = $productCollection->getLastPageNumber();
389387
$currentPage = 1;
390388

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Add into Magento 2 a CLI feature which allow to regenerate a Url rewrites of products/categories",
44
"keywords": ["magento", "magento2 extension", "magento 2 extension", "extension", "module", "magento2 module", "magento 2 module"],
55
"type": "magento2-module",
6-
"version": "1.2.1",
6+
"version": "1.2.2",
77
"homepage": "https://github.com/olegkoval/magento2-regenerate_url_rewrites",
88
"authors": [
99
{

etc/module.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
-->
1212
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
13-
<module name="OlegKoval_RegenerateUrlRewrites" setup_version="1.2.1">
13+
<module name="OlegKoval_RegenerateUrlRewrites" setup_version="1.2.2">
1414
<sequence>
1515
<module name="Magento_Store"/>
1616
<module name="Magento_Catalog"/>

0 commit comments

Comments
 (0)