Bugzilla – Attachment 41784 Details for
Bug 12388
IssueSlip output should be sorted by date_due, not timestamp
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
0001-Bug-12388-Sort-issue-slip-issues-by-date-due.patch (text/plain), 957 bytes, created by
Joonas Kylmälä
on 2015-08-21 13:09:32 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Joonas Kylmälä
Created:
2015-08-21 13:09:32 UTC
Size:
957 bytes
patch
obsolete
>From 9b9cb5fed274ae0c71934c3b43bcaef3b9806392 Mon Sep 17 00:00:00 2001 >From: Pasi Kallinen <pasi.kallinen@pttk.fi> >Date: Mon, 23 Jun 2014 14:17:17 +0300 >Subject: [PATCH] Bug 12388: Sort issue slip issues by date due > >--- > C4/Members.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/C4/Members.pm b/C4/Members.pm >index 879bb1a..6cc72e9 100644 >--- a/C4/Members.pm >+++ b/C4/Members.pm >@@ -2348,9 +2348,10 @@ sub IssueSlip { > $it->{'overdue'} = 1; > } > my $dt = dt_from_string( $it->{'date_due'} ); >+ $it->{'date_due_orig'} = $it->{'date_due'}; > $it->{'date_due'} = output_pref( { dt => $dt, dateonly => 1 } ); > } >- my @issues = sort { $b->{'timestamp'} <=> $a->{'timestamp'} } @$issueslist; >+ my @issues = sort { $a->{'date_due_orig'} <=> $b->{'date_due_orig'} || $b->{'timestamp'} <=> $a->{'timestamp'} } @$issueslist; > > my ($letter_code, %repeat); > if ( $quickslip ) { >-- >1.9.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12388
:
41784
|
62361
|
91522
|
91766
|
102977
|
104033
|
104034
|
114180