Skip to content

Commit 8c71d71

Browse files
committed
Merge pull request #11 in PLUG_FREE/frontend_swagcustomsort from bugfix/PT-3324-manufacturer-page-error to master
* commit '7adb5e7df57f6e9536558fa7591a6cf178765a25': PT-3324 fix error for manufacturer page when custom sort is applied
2 parents dedf01f + 7adb5e7 commit 8c71d71

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Subscriber/Sort.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ public function onCreateListingCriteria(Enlight_Event_EventArgs $args)
5454
{
5555
$request = $args->get('request');
5656
$criteria = $args->get('criteria');
57+
58+
//Don't apply custom sort if we are not in category listing
59+
if ($request->getActionName() != 'index') {
60+
return;
61+
}
62+
5763
$sorter = new SortFactory($request, $criteria);
5864
$sorter->addSort();
5965
}

0 commit comments

Comments
 (0)