Bugzilla – Attachment 46081 Details for
Bug 15381
Move the authority types related code to Koha::Authority::Type[s] - part 2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15381: Fix error in SearchAuthorities when no authtypecode
Bug-15381-Fix-error-in-SearchAuthorities-when-no-a.patch (text/plain), 1.08 KB, created by
Martin Renvoize (ashimema)
on 2015-12-30 13:35:46 UTC
(
hide
)
Description:
Bug 15381: Fix error in SearchAuthorities when no authtypecode
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2015-12-30 13:35:46 UTC
Size:
1.08 KB
patch
obsolete
>From 2cc11d06f73b444c64af3ff24abad5e25a34af88 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= <f.demians@tamil.fr> >Date: Sun, 20 Dec 2015 17:17:08 +0100 >Subject: [PATCH] Bug 15381: Fix error in SearchAuthorities when no > authtypecode > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/AuthoritiesMarc.pm | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index a2e01e5..43c5faf 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -291,7 +291,9 @@ sub SearchAuthorities { > my %newline; > $newline{authid} = $authid; > if ( !$skipmetadata ) { >- my $auth_tag_to_report = Koha::Authority::Types->find($authtypecode)->auth_tag_to_report; >+ my $auth_tag_to_report; >+ $auth_tag_to_report = Koha::Authority::Types->find($authtypecode)->auth_tag_to_report >+ if $authtypecode; > my $reported_tag; > my $mainentry = $authrecord->field($auth_tag_to_report); > if ($mainentry) { >-- >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 15381
:
45705
|
45706
|
45707
|
45900
|
45901
|
45902
|
45903
|
46078
|
46079
|
46080
| 46081