projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
049d13e
)
Bug 6720 follow-up: fix error when auth has been deleted
author
Jared Camins-Esakov
<jcamins@cpbibliography.com>
Thu, 2 Aug 2012 13:18:39 +0000
(09:18 -0400)
committer
Paul Poulain
<paul.poulain@biblibre.com>
Thu, 2 Aug 2012 13:40:06 +0000
(15:40 +0200)
Thanks to Paul Poulain for finding the problem and proposing a solution.
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
C4/AuthoritiesMarc.pm
patch
|
blob
|
history
diff --git
a/C4/AuthoritiesMarc.pm
b/C4/AuthoritiesMarc.pm
index
ece46a3
..
bcdbf84
100644
(file)
--- a/
C4/AuthoritiesMarc.pm
+++ b/
C4/AuthoritiesMarc.pm
@@
-354,7
+354,7
@@
sub SearchAuthorities {
my $thisauthtype = GetAuthType(GetAuthTypeCode($authid));
$newline{authtype} = defined ($thisauthtype) ?
$thisauthtype->{'authtypetext'} :
-
GetAuthType($authtypecode)->{'authtypetext'}
;
+
(GetAuthType($authtypecode) ? $_->{'authtypetext'} : '')
;
$newline{summary} = $summary;
$newline{even} = $counter % 2;
$newline{reported_tag} = $reported_tag;