Bugzilla – Attachment 27646 Details for
Bug 9811
Patrons search improvements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9811 - datetime does not respect DateFormat-system prefrence
Bug-9811---datetime-does-not-respect-DateFormat-sy.patch (text/plain), 1.31 KB, created by
Jonathan Druart
on 2014-04-25 15:17:57 UTC
(
hide
)
Description:
Bug 9811 - datetime does not respect DateFormat-system prefrence
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-04-25 15:17:57 UTC
Size:
1.31 KB
patch
obsolete
>From f37c80c7bad76690d44e95ea2acf2bf44efb540b Mon Sep 17 00:00:00 2001 >From: Olli-Antti Kivilahti <olli-antti.kivilahti@jns.fi> >Date: Fri, 14 Mar 2014 12:39:03 +0100 >Subject: [PATCH] Bug 9811 - datetime does not respect DateFormat-system > prefrence > >To test: >Try searching by the date of birth using the left filter column. Good luck. > >After applying this patch: >You can search using your preferred DateFormat. > >Merci bocu >--- > svc/members/search | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/svc/members/search b/svc/members/search >index 56b9e86..1b3a02a 100755 >--- a/svc/members/search >+++ b/svc/members/search >@@ -24,6 +24,7 @@ use C4::Auth qw( get_template_and_user ); > use C4::Output qw( output_with_http_headers ); > use C4::Utils::DataTables qw( dt_get_params ); > use C4::Utils::DataTables::Members qw( search ); >+use Koha::DateUtils qw( output_pref dt_from_string ); > > my $input = new CGI; > >@@ -44,6 +45,10 @@ my $branchcode = $input->param('branchcode'); > my $searchtype = $input->param('searchtype'); > my $searchfieldstype = $input->param('searchfieldstype'); > >+if ( $searchfieldstype eq "dateofbirth" ) { >+ $searchmember = output_pref({dt => dt_from_string($searchmember), dateformat => 'iso', dateonly => 1}); >+} >+ > # variable information for DataTables (id) > my $sEcho = $input->param('sEcho'); > >-- >1.7.10.4
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 9811
:
16096
|
16111
|
16112
|
16320
|
16362
|
16403
|
16957
|
19056
|
19057
|
19307
|
19633
|
19642
|
20094
|
20095
|
20096
|
20174
|
20266
|
20290
|
20291
|
21169
|
21170
|
21171
|
21172
|
21173
|
21174
|
21175
|
22265
|
23261
|
24095
|
24111
|
26067
|
26068
|
26261
|
26336
|
26337
|
26342
|
26347
|
27642
|
27643
|
27644
|
27645
|
27646
|
27711
|
28738
|
28739
|
28740
|
28741
|
28742
|
28743
|
28744
|
28745
|
28746
|
28747
|
28781
|
28782
|
29019
|
29020
|
29021
|
29022
|
29023
|
29024
|
29025
|
29026
|
29027
|
29028
|
29029
|
29442