@@ -, +, @@ circ/set-library.pl 1) Go directly to /cgi-bin/koha/circ/set-library.pl by typing it in the URL bar and set a library 2) Make sure plack-intranet-error.log doesn't contain the above mentioned errors after applying this patch --- circ/set-library.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/circ/set-library.pl +++ a/circ/set-library.pl @@ -76,7 +76,7 @@ if ( $branch and my $library = Koha::Libraries->find($branch) ) { old_desk => $old_desk_name, }; } - if ( defined($userenv_register_id) + if ( defined($register_id) && ( $userenv_register_id ne $register_id ) ) { my $old_register_name = C4::Context->userenv->{'register_name'} || ''; @@ -110,7 +110,7 @@ foreach ($query->param()) { }; } -my $referer = $query->param('oldreferer') || $ENV{HTTP_REFERER}; +my $referer = $query->param('oldreferer') || $ENV{HTTP_REFERER} || ''; $referer =~ /set-library\.pl/ and undef $referer; # avoid sending them back to this same page. if (scalar @updated and not scalar @recycle_loop) { --