Skip to content

Commit 1ba1c09

Browse files
committed
removed order filter default on sum and minmax filters
1 parent f8a5ffd commit 1ba1c09

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/dba/AbstractModelFactory.class.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -427,18 +427,6 @@ public function minMaxFilter(array $options, string $sumColumn, string $op): mix
427427
$query .= $this->applyFilters($vals, $options['filter']);
428428
}
429429

430-
if (!array_key_exists("order", $options)) {
431-
// Add a asc order on the primary keys as a standard
432-
$oF = new OrderFilter($this->getNullObject()->getPrimaryKey(), "ASC");
433-
$orderOptions = array(
434-
$oF
435-
);
436-
$options['order'] = $orderOptions;
437-
}
438-
if (count($options['order']) != 0) {
439-
$query .= $this->applyOrder($this->getOrders($options));
440-
}
441-
442430
$dbh = self::getDB();
443431
$stmt = $dbh->prepare($query);
444432
$stmt->execute($vals);
@@ -485,18 +473,6 @@ public function sumFilter($options, $sumColumn) {
485473
$query .= $this->applyFilters($vals, $options['filter']);
486474
}
487475

488-
if (!array_key_exists("order", $options)) {
489-
// Add a asc order on the primary keys as a standard
490-
$oF = new OrderFilter($this->getNullObject()->getPrimaryKey(), "ASC");
491-
$orderOptions = array(
492-
$oF
493-
);
494-
$options['order'] = $orderOptions;
495-
}
496-
if (count($options['order']) != 0) {
497-
$query .= $this->applyOrder($this->getOrders($options));
498-
}
499-
500476
$dbh = self::getDB();
501477
$stmt = $dbh->prepare($query);
502478
$stmt->execute($vals);

0 commit comments

Comments
 (0)