Skip to content

Commit 789bba2

Browse files
committed
Use correct resource model in case of flat category being active (Fixes #1)
1 parent 747137b commit 789bba2

File tree

1 file changed

+1
-1
lines changed
  • src/app/code/community/IntegerNet/Solr/Model/Bridge

1 file changed

+1
-1
lines changed

src/app/code/community/IntegerNet/Solr/Model/Bridge/Category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function getPathExcludingCurrentCategory($separator)
107107
array_shift($pathIds);
108108
array_pop($pathIds);
109109
foreach($pathIds as $pathId) {
110-
$pathParts[] = $this->_category->getResource()->getAttributeRawValue($pathId, 'name', $this->getStoreId());
110+
$pathParts[] = Mage::getResourceModel('catalog/category')->getAttributeRawValue($pathId, 'name', $this->getStoreId());
111111
}
112112
return implode($separator, $pathParts);
113113
}

0 commit comments

Comments
 (0)