Bugzilla – Attachment 40745 Details for
Bug 14481
Warns when setting permissions for patron
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14481: Silences warns triggered when setting patron permissions
Bug-14481-Silences-warns-triggered-when-setting-pa.patch (text/plain), 1.07 KB, created by
Aleisha Amohia
on 2015-07-01 05:23:26 UTC
(
hide
)
Description:
Bug 14481: Silences warns triggered when setting patron permissions
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2015-07-01 05:23:26 UTC
Size:
1.07 KB
patch
obsolete
>From ffa307a0a495b487e673fb8fe637abfbd0b2facc Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Wed, 1 Jul 2015 02:38:56 +0000 >Subject: [PATCH] Bug 14481: Silences warns triggered when setting patron > permissions > >Use of uninitialized value $roadtype > >To test: >1) Go to any patron page and click More --> Set permissions (or follow this link --> http://localhost:8081/cgi-bin/koha/members/member-flags.pl?member=1369) >2) Notice the warns >3) Apply patch and reload page >4) Notice warns are gone and page still works correctly >--- > members/member-flags.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/members/member-flags.pl b/members/member-flags.pl >index 68c52aa..c1cf704 100755 >--- a/members/member-flags.pl >+++ b/members/member-flags.pl >@@ -173,6 +173,7 @@ if (C4::Context->preference('ExtendedPatronAttributes')) { > > # Computes full borrower address > my $roadtype = C4::Koha::GetAuthorisedValueByCode( 'ROADTYPE', $bor->{streettype} ); >+$roadtype //= ''; > my $address = $bor->{'streetnumber'} . " $roadtype " . $bor->{'address'}; > > $template->param( >-- >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 14481
:
40745
|
45678
|
45722