Bugzilla – Attachment 59736 Details for
Bug 17933
Internal software error when searching patron without birth date
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17933: Do not instanciate a patron if not needed
Bug-17933-Do-not-instanciate-a-patron-if-not-neede.patch (text/plain), 975 bytes, created by
Dobrica Pavlinusic
on 2017-02-01 12:52:09 UTC
(
hide
)
Description:
Bug 17933: Do not instanciate a patron if not needed
Filename:
MIME Type:
Creator:
Dobrica Pavlinusic
Created:
2017-02-01 12:52:09 UTC
Size:
975 bytes
patch
obsolete
>From c8440ec056a7f266af4d879fce742591ca53705f Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 19 Jan 2017 11:20:33 +0100 >Subject: [PATCH] Bug 17933: Do not instanciate a patron if not needed > >Signed-off-by: Dobrica Pavlinusic <dpavlin@rot13.org> >--- > members/moremember.pl | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/members/moremember.pl b/members/moremember.pl >index 51012ed..b3e8d76 100755 >--- a/members/moremember.pl >+++ b/members/moremember.pl >@@ -242,7 +242,9 @@ my $overdues_exist = 0; > my $totalprice = 0; > > # Calculate and display patron's age >-$template->param( age => Koha::Patron->new({ dateofbirth => $data->{dateofbirth} })->get_age ); >+if ( $data->{dateofbirth} ) { >+ $template->param( age => Koha::Patron->new({ dateofbirth => $data->{dateofbirth} })->get_age ); >+} > > ### ############################################################################### > # BUILD HTML >-- >2.1.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 17933
:
59172
|
59194
|
59214
|
59215
|
59733
|
59734
|
59735
|
59736
|
60356
|
60357
|
60358