Skip to content

Commit

Permalink
Merge pull request #22 from oc-shopaholic/develop
Browse files Browse the repository at this point in the history
Release version 1.3.1
  • Loading branch information
kharanenka authored Mar 27, 2020
2 parents a4b8021 + 5c5b633 commit a76c219
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions classes/item/CategoryItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ public function getPageParamList($sPageCode, $arRemoveParamList = []) : array
}

//Get URL params for page
$arParamList = PageHelper::instance()->getUrlParamList($sPageCode, 'CategoryPage');
$arParamList = PageHelper::instance()->getUrlParamList($sPageCode, 'ArticleCategoryPage');
if (empty($arParamList)) {
return [];
}

//Get slug list
$arSlugList = $this->getSlugList();

$arWildcardParamList = PageHelper::instance()->getUrlParamList($sPageCode, 'CategoryPage', 'slug', true);
$arWildcardParamList = PageHelper::instance()->getUrlParamList($sPageCode, 'ArticleCategoryPage', 'slug', true);
if (!empty($arWildcardParamList)) {
$arSlugList = array_reverse($arSlugList);
$arResult[array_shift($arWildcardParamList)] = implode('/', $arSlugList);
Expand Down
2 changes: 2 additions & 0 deletions components/ArticlePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
*/
class ArticlePage extends ElementPage
{
protected $bNeedSmartURLCheck = true;

/** @var Article */
protected $obElement;

Expand Down
4 changes: 3 additions & 1 deletion updates/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@
- 'Fixed support of wildcard params in ArticleCategoryPage component. Requires Toolbox plugin version 1.26.1 and later.'
- update_table_articles_add_soft_deletes.php
1.3.0:
- 'Added article_count attribute to CategoryItem class. Thanks for contribution Dinwid.'
- 'Added article_count attribute to CategoryItem class. Thanks for contribution Dinwid.'
1.3.1:
- 'Fixed logic in CategoryItem::getPageUrl() method. Thanks for contribution Dinwid.'

0 comments on commit a76c219

Please sign in to comment.