Skip to content

Commit

Permalink
Fix ajax error
Browse files Browse the repository at this point in the history
  • Loading branch information
srenon committed Jun 7, 2017
1 parent 5c37291 commit 50d208f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Block/Data/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,16 @@ function _prepareLayout()
/** @var $product \Magento\Catalog\Api\Data\ProductInterface */
$category = $this->getCurrentCategory();

if(!$category){
return;
}

$tm->addVariable(
'list',
'category'
);


$titleArray = [];
$breadCrumbs = $this->_catalogData->getBreadcrumbPath();

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"magento/framework": "100.0.*|100.1.*"
},
"type": "magento2-module",
"version": "2.0.1",
"version": "2.0.2",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="MagePal_GoogleTagManager" setup_version="2.0.1">
<module name="MagePal_GoogleTagManager" setup_version="2.0.2">
<sequence>
<module name="Magento_Store"/>
</sequence>
Expand Down

0 comments on commit 50d208f

Please sign in to comment.