Merge branch 'fix-163' into 'development'

🐛Fix #163 — Fix invitations sorting order

See merge request fiat-tux/hat-softwares/lufi!37
This commit is contained in:
Luc Didry 2019-10-07 23:39:19 +02:00
commit 2b790c9f90
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
Revision history for Lufi
?.??.? ????-??-??
- Fix invitations sorting order (#163)
0.04.3 2019-09 29
- Translate dates in invitations (#161)

View File

@ -302,7 +302,7 @@ sub from_user {
my $user = shift;
my $r = $c->app->dbi->db
->select('invitations', undef, { ldap_user => $user })
->select('invitations', undef, { ldap_user => $user }, { -desc => 'created_at' })
->hashes;
if ($r->size) {