Bugzilla – Attachment 60358 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), 1.01 KB, created by
Nick Clemens (kidclamp)
on 2017-02-16 16:40:35 UTC
(
hide
)
Description:
Bug 17933: Do not instanciate a patron if not needed
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2017-02-16 16:40:35 UTC
Size:
1.01 KB
patch
obsolete
>From bb28bffd67680e1d42a5c2e2204ef57164b65e74 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> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > 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