Bugzilla – Attachment 46267 Details for
Bug 15470
Error when adding new authority with Default framework
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 15470: Error when adding new authority with Default framework
SIGNED-OFF-Bug-15470-Error-when-adding-new-authori.patch (text/plain), 1.45 KB, created by
Bernardo Gonzalez Kriegel
on 2016-01-05 15:22:52 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 15470: Error when adding new authority with Default framework
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2016-01-05 15:22:52 UTC
Size:
1.45 KB
patch
obsolete
>From da7e35a3680206e6e6064c4f47b47111b500870d Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Tue, 5 Jan 2016 12:47:31 +0100 >Subject: [PATCH] [SIGNED-OFF] Bug 15470: Error when adding new authority with > Default framework > >TO TEST: >1. Authorities > New authority > Default >2. You get: > Can't call method "authtypetext" on an undefined value at >3. Apply the patch and repeat 1 > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Bug reproduced, now fixed. >No koha-qa errors >--- > authorities/authorities.pl | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/authorities/authorities.pl b/authorities/authorities.pl >index 2eba66e..d70e2e5 100755 >--- a/authorities/authorities.pl >+++ b/authorities/authorities.pl >@@ -661,13 +661,15 @@ if ($op eq "duplicate") > } > > my $authority_types = Koha::Authority::Types->search( {}, { order_by => ['authtypetext'] } ); >+my $authtypetext = $authority_types->find($authtypecode); >+$authtypetext = $authtypetext->authtypetext if $authtypetext; > > $template->param( > authority_types => $authority_types, > authtypecode => $authtypecode, > authid => $authid, > linkid => $linkid, >- authtypetext => $authority_types->find($authtypecode)->authtypetext, >+ authtypetext => $authtypetext, > hide_marc => C4::Context->preference('hide_marc'), > ); > output_html_with_http_headers $input, $cookie, $template->output; >-- >1.9.1
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 15470
:
46250
| 46267