Skip to content

Commit

Permalink
more sorting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ribeiro committed Sep 4, 2024
1 parent 3ca9227 commit 45320fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions endpoints/subscriptions/get.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
$sort = $_COOKIE['sortOrder'];
}

$sortOrder = $sort;
$allowedSortCriteria = ['name', 'id', 'next_payment', 'price', 'payer_user_id', 'category_id', 'payment_method_id', 'inactive', 'alphanumeric'];
$order = ($sort == "price" || $sort == "id") ? "DESC" : "ASC";

Expand Down

0 comments on commit 45320fb

Please sign in to comment.