Skip to content

Commit 7d90bfc

Browse files
authored
Merge pull request #1781 from hashtopolis/dba-fix-count-order
Remove order from countFilter
2 parents cfae596 + 32e652f commit 7d90bfc

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/dba/AbstractModelFactory.class.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -500,18 +500,6 @@ public function countFilter($options) {
500500
$query .= $this->applyFilters($vals, $options['filter']);
501501
}
502502

503-
if (!array_key_exists("order", $options)) {
504-
// Add a asc order on the primary keys as a standard
505-
$oF = new OrderFilter($this->getNullObject()->getPrimaryKey(), "ASC");
506-
$orderOptions = array(
507-
$oF
508-
);
509-
$options['order'] = $orderOptions;
510-
}
511-
if (count($options['order']) != 0) {
512-
$query .= $this->applyOrder($options['order']);
513-
}
514-
515503
$dbh = self::getDB();
516504
$stmt = $dbh->prepare($query);
517505
$stmt->execute($vals);

0 commit comments

Comments
 (0)