We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dedf01f + 7adb5e7 commit 8c71d71Copy full SHA for 8c71d71
Subscriber/Sort.php
@@ -54,6 +54,12 @@ public function onCreateListingCriteria(Enlight_Event_EventArgs $args)
54
{
55
$request = $args->get('request');
56
$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
63
$sorter = new SortFactory($request, $criteria);
64
$sorter->addSort();
65
}
0 commit comments