Skip to content

Commit a0e99b1

Browse files
committed
Compatibility with magento 2.4
1 parent 492d8fc commit a0e99b1

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)