]> git.agnieray.net Git - galette.git/commitdiff
Fix contributions list order by payment type
authorGuillaume AGNIERAY <dev@agnieray.net>
Sun, 3 Oct 2021 17:40:09 +0000 (19:40 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Mon, 4 Oct 2021 05:01:26 +0000 (07:01 +0200)
refs #1579
closes #1579

galette/lib/Galette/Repository/Contributions.php

index 9e236af412156fd8f3ebbbbc938fcdbba66619ad..87b0716e5a5f15a11b9ea52cd97fa3049d41c3d2 100644 (file)
@@ -292,7 +292,7 @@ class Contributions
             case ContributionsList::ORDERBY_DURATION:
                 break;*/
             case ContributionsList::ORDERBY_PAYMENT_TYPE:
-                $order[] = 'type_paiement_cotis ' . $this->ordered;
+                $order[] = 'type_paiement_cotis ' . $this->filters->ordered;
                 break;
             default:
                 $order[] = $this->filters->orderby . ' ' . $this->filters->ordered;