Skip to content

Commit 87a96db

Browse files
authored
Merge pull request #20 from piotrmatras/feat/fix-fulltext-collection
Compatibility with magento 2.4
2 parents 492d8fc + a0e99b1 commit 87a96db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/ResourceModel/Post/Fulltext/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function getSize()
101101
/**
102102
* {@inheritDoc}
103103
*/
104-
public function setOrder($attribute, $dir = \Magento\Framework\DB\Select::SQL_DESC)
104+
public function setOrder($field, $direction = self::SORT_ORDER_DESC)
105105
{
106106
throw new \LogicException("Sorting on multiple stores is not allowed in search engine collections.");
107107
}

0 commit comments

Comments
 (0)