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.
1 parent 5d34c76 commit 0e3a9adCopy full SHA for 0e3a9ad
src/ActiveDataProvider.php
@@ -122,6 +122,9 @@ protected function prepareModels()
122
123
if (is_array(($results = $query->search($this->db)))) {
124
$this->setQueryResults($results);
125
+ if ($pagination !== false) {
126
+ $pagination->totalCount = $this->getTotalCount();
127
+ }
128
return $results['hits']['hits'];
129
}
130
$this->setQueryResults([]);
@@ -138,9 +141,6 @@ protected function prepareTotalCount()
138
141
139
142
140
143
$results = $this->getQueryResults();
-
- var_dump($results);
144
if (isset($results['hits']['total'])) {
145
return is_array($results['hits']['total']) ? (int) $results['hits']['total']['value'] : (int) $results['hits']['total'];
146
0 commit comments