Closed sprankhub closed 8 years ago
$searchListBlock->getSortBy() may return an empty string or null, which breaks the SQL (resulting in a fatal error!). The order should only be set if it is available. Similar to Yireo_GoogleTagManager_Block_Category::getProductCollection.
$searchListBlock->getSortBy()
Yireo_GoogleTagManager_Block_Category::getProductCollection
Awesome, thanks. It looks like a solid fix. Will see if I can build a new release soon.
$searchListBlock->getSortBy()
may return an empty string or null, which breaks the SQL (resulting in a fatal error!). The order should only be set if it is available. Similar toYireo_GoogleTagManager_Block_Category::getProductCollection
.