From eea56d412461d9b673306697dcf5335d8686afc8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joonas=20Kylm=C3=A4l=C3=A4?= Date: Mon, 17 Aug 2015 12:40:05 +0000 Subject: [PATCH] Bug 14687: Patron's transaction history changes items' order after paying fines. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Sorts Patron's accounting data consistently from newest to oldest. It doesn't depend on anymore to timestamp (which can be same for multiple entries) from database but instead uses accountline's id to sort. Signed-off-by: Liz Rea Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 307fe0ac533c2dc8116a183d104c864717a91fc5) Signed-off-by: Frédéric Demians --- C4/Members.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Members.pm b/C4/Members.pm index a20565e4d0..836efb2553 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -1168,7 +1168,7 @@ sub GetMemberAccountRecords { SELECT * FROM accountlines WHERE borrowernumber=?); - $strsth.=" ORDER BY date desc,timestamp DESC"; + $strsth.=" ORDER BY accountlines_id desc"; my $sth= $dbh->prepare( $strsth ); $sth->execute( $borrowernumber ); -- 2.39.5