forked from Smile-SA/elasticsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
98 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
* @author Aurelien FOUCRET <[email protected]> | ||
* | ||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects) | ||
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity) | ||
* @SuppressWarnings(PHPMD.TooManyPublicMethods) | ||
*/ | ||
class Collection extends \Magento\Catalog\Model\ResourceModel\Product\Collection | ||
|
@@ -445,6 +446,23 @@ function (\Magento\Framework\Api\Search\Document $doc) { | |
return parent::_renderFiltersBefore(); | ||
} | ||
|
||
/** | ||
* Set _pageSize false since it is managed by the engine and might have been changed since _renderFiltersBefore. | ||
* | ||
* @SuppressWarnings(PHPMD.CamelCaseMethodName) | ||
* | ||
* {@inheritDoc} | ||
*/ | ||
protected function _beforeLoad() | ||
{ | ||
if ($this->_pageSize !== false) { | ||
$this->originalPageSize = $this->_pageSize; | ||
$this->_pageSize = false; | ||
} | ||
|
||
return parent::_beforeLoad(); | ||
} | ||
|
||
/** | ||
* @SuppressWarnings(PHPMD.CamelCaseMethodName) | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters