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 050b288 commit be32dcbCopy full SHA for be32dcb
src/app/Library/CrudPanel/Traits/Query.php
@@ -257,6 +257,9 @@ private function getCountFromQuery(Builder $query)
257
// - orders/limit/offset because we want the "full query count" where orders don't matter and limit/offset would break the total count
258
$subQuery = $crudQuery->cloneWithout(['columns', 'orders', 'limit', 'offset']);
259
260
+ // re-set the previous query bindings
261
+ $subQuery->setBindings($crudQuery->getRawBindings());
262
+
263
// select only one column for the count
264
$subQuery->select($modelTable.'.'.$this->model->getKeyName());
265
0 commit comments