When trying to commit records via command line using commit_file.pl in combination with syspref AutoCreateAuthorities 'generate' and BiblioAddsAuthorities ' allow' if marcrecods has not 003 the system stops with error: Can't call method "get_effective_marcorgcode" on an undefined value at /usr/share/koha/lib/C4/AuthoritiesMarc.pm line 578. It also happened with cataloguing form at admin gui, but I am not able to reproduce the error again.
Caused by my follow-up on bug 10132: commit 80c749df80f08be46b895715045b38cd1ded2ed1 Bug 10132: Simplify code, call the method only once
Created attachment 94999 [details] [review] Bug 23933: (bug 10132 follow-up) Fix commit_file.pl
Created attachment 95026 [details] [review] Bug 23933: (bug 10132 follow-up) Fix commit_file.pl Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Fix works, Signingoff.. Wondering about Unit tests, but will leave that for QA discretion.
Created attachment 95190 [details] [review] Bug 23933: (bug 10132 follow-up) Fix commit_file.pl Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Nice work! Pushed to master for 19.11.00
Pushed to 19.05.x for 19.05.05