From adc8407d37178bfcca884516625b80987affa0ee Mon Sep 17 00:00:00 2001 From: Emily Lamancusa Date: Fri, 10 May 2024 14:01:59 -0400 Subject: [PATCH] Bug 36832: (bug 36791 follow-up) Allow authid=0 To test: 1. Go to the Authorities module and do a Z39.50 search that will return results (e.g. a general subject heading) 2. Import an authority record from the results --> Confirm that the record is imported into the editor --- authorities/authorities.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authorities/authorities.pl b/authorities/authorities.pl index b2fad5d2a8..3b8a235636 100755 --- a/authorities/authorities.pl +++ b/authorities/authorities.pl @@ -553,7 +553,7 @@ if ( $op eq 'cud-change-framework' ) { my $dbh = C4::Context->dbh; my $authobj = Koha::Authorities->find($authid); -if ( defined $authid && !$authobj ) { +if ( $authid && !$authobj ) { print $input->redirect("/cgi-bin/koha/errors/404.pl"); # escape early exit; } -- 2.34.1