Bugzilla – Attachment 109232 Details for
Bug 26307
Changing patron category should check age limits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26307: Use same syntax in --too_young
Bug-26307-Use-same-syntax-in---tooyoung.patch (text/plain), 1.21 KB, created by
Fridolin Somers
on 2020-08-27 14:06:57 UTC
(
hide
)
Description:
Bug 26307: Use same syntax in --too_young
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2020-08-27 14:06:57 UTC
Size:
1.21 KB
patch
obsolete
>From 7350457551f978bfdeba9e98ba58d964f4be4ff8 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Thu, 27 Aug 2020 15:58:15 +0200 >Subject: [PATCH] Bug 26307: Use same syntax in --too_young > >In too_young use dt->strftime("%Y-%m-%d") like in too_old. >This does not change the behavior. > >Test plan : >Run prove t/db_dependent/Patrons.t >--- > Koha/Patrons.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Patrons.pm b/Koha/Patrons.pm >index 22e957ad54..5b64834ad8 100644 >--- a/Koha/Patrons.pm >+++ b/Koha/Patrons.pm >@@ -388,7 +388,7 @@ sub search_patrons_to_update_category { > my $dtf = Koha::Database->new->schema->storage->datetime_parser; > if( $cat_from->dateofbirthrequired && $params->{too_young} ) { > my $date_after = dt_from_string()->subtract( years => $cat_from->dateofbirthrequired); >- $search_params->{dateofbirth}{'>'} = $dtf->format_datetime( $date_after ); >+ $search_params->{dateofbirth}{'>'} = $date_after->strftime("%Y-%m-%d"); > } > if( $cat_from->upperagelimit && $params->{too_old} ) { > my $date_before = dt_from_string()->subtract( years => ( $cat_from->upperagelimit + 1 ) ); >-- >2.27.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 26307
:
109229
|
109230
|
109231
|
109232