Bugzilla – Attachment 44740 Details for
Bug 14985
Remove C4::Dates from 6 files in folder C4/*.pm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14985: Fix regression on patron search
Bug-14985-Fix-regression-on-patron-search.patch (text/plain), 1.65 KB, created by
Jonathan Druart
on 2015-11-11 12:08:38 UTC
(
hide
)
Description:
Bug 14985: Fix regression on patron search
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-11-11 12:08:38 UTC
Size:
1.65 KB
patch
obsolete
>From 0713280db3d8a99e88ab7bd516b0b81479a9ccd7 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 11 Nov 2015 12:03:51 +0000 >Subject: [PATCH] Bug 14985: Fix regression on patron search > >This patch fixes 2 major errors introduced by last patch: >1/ Undefined subroutine &C4::Utils::DataTables::Members::dt_from_string >called >when searching for patrons >2/ Display the dates on the patron search in the pref format, not iso > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > C4/Utils/DataTables/Members.pm | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/C4/Utils/DataTables/Members.pm b/C4/Utils/DataTables/Members.pm >index 5e0b812..bfa73e0 100644 >--- a/C4/Utils/DataTables/Members.pm >+++ b/C4/Utils/DataTables/Members.pm >@@ -1,10 +1,11 @@ > package C4::Utils::DataTables::Members; > >+use Modern::Perl; > use C4::Branch qw/onlymine/; > use C4::Context; > use C4::Members qw/GetMemberIssuesAndFines/; > use C4::Utils::DataTables; >-use Modern::Perl; >+use Koha::DateUtils; > > sub search { > my ( $params ) = @_; >@@ -142,7 +143,7 @@ sub search { > ($patron->{overdues}, $patron->{issues}, $patron->{fines}) = > GetMemberIssuesAndFines($patron->{borrowernumber}); > if($patron->{dateexpiry} and $patron->{dateexpiry} ne '0000-00-00') { >- $patron->{dateexpiry} = output_pref( { dt => dt_from_string( $patron->{dateexpiry}), dateonly => 1, dateformat => 'iso' } ); >+ $patron->{dateexpiry} = output_pref( { dt => dt_from_string( $patron->{dateexpiry}, 'iso'), dateonly => 1} ); > } else { > $patron->{dateexpiry} = ''; > } >-- >2.1.0
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 14985
:
43285
|
44439
|
44556
|
44621
|
44699
|
44700
|
44701
|
44739
| 44740 |
44741
|
44764
|
44765