Bugzilla – Attachment 59215 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), 921 bytes, created by
Jonathan Druart
on 2017-01-19 10:21:40 UTC
(
hide
)
Description:
Bug 17933: Do not instanciate a patron if not needed
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-01-19 10:21:40 UTC
Size:
921 bytes
patch
obsolete
>From 4de53c7e9a87d44d1a517d2e720828a93d0d94a8 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 > >--- > members/moremember.pl | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/members/moremember.pl b/members/moremember.pl >index 07277d5..02c35fd 100755 >--- a/members/moremember.pl >+++ b/members/moremember.pl >@@ -237,7 +237,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