Skip to content

Commit

Permalink
Fix orderby member
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Sep 4, 2024
1 parent 4b937eb commit b60acac
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/GaletteActivities/Repository/Subscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ public function getList(bool $full = false): array
{
try {
$select = $this->buildSelect(null);
$select->order($this->buildOrderClause());

$this->proceedCount($select);

if ($full !== true) {
Expand Down Expand Up @@ -333,8 +331,8 @@ private function buildOrderClause(array $fields = null): array
break;
case self::ORDERBY_MEMBER:
if ($this->canOrderBy(Adherent::PK, $fields)) {
$order[] = 'a.nom_adh ' . $this->filters->getDirection() .
', a.prenom_adh ' . $this->filters->getDirection();
$order[] = 'a.nom_adh ' . $this->filters->getDirection();
$order[] = 'a.prenom_adh ' . $this->filters->getDirection();
}
break;
case self::ORDERBY_SUBSCRIPTIONDATE:
Expand Down

0 comments on commit b60acac

Please sign in to comment.