Bugzilla – Attachment 95190 Details for
Bug 23933
commit_file.pl Can't call method "get_effective_marcorgcode" on an undefined value at /usr/share/koha/lib/C4/AuthoritiesMarc.pm line 578.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23933: (bug 10132 follow-up) Fix commit_file.pl
Bug-23933-bug-10132-follow-up-Fix-commitfilepl.patch (text/plain), 1.20 KB, created by
Marcel de Rooy
on 2019-11-08 10:22:51 UTC
(
hide
)
Description:
Bug 23933: (bug 10132 follow-up) Fix commit_file.pl
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2019-11-08 10:22:51 UTC
Size:
1.20 KB
patch
obsolete
>From 8796695956b5e2d0ccf91d0fa7ea94413f78221e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 4 Nov 2019 12:25:33 +0100 >Subject: [PATCH] Bug 23933: (bug 10132 follow-up) Fix commit_file.pl >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/AuthoritiesMarc.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm >index 0d90b37d67..c0c42df2bd 100644 >--- a/C4/AuthoritiesMarc.pm >+++ b/C4/AuthoritiesMarc.pm >@@ -575,7 +575,8 @@ sub AddAuthority { > my $marcorgcode = C4::Context->preference('MARCOrgCode'); > if ( $userenv && $userenv->{'branch'} ) { > $library = Koha::Libraries->find( $userenv->{'branch'} ); >- $marcorgcode = $library->get_effective_marcorgcode; >+ # userenv's library could not exist because of a trick in misc/commit_file.pl (see FIXME and set_userenv statement) >+ $marcorgcode = $library ? $library->get_effective_marcorgcode : $marcorgcode; > } > if (!$record->leader) { > $record->leader($leader); >-- >2.11.0
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 23933
:
94999
|
95026
| 95190