From dceb14537a44c81339d2eed47f56797f5595fca5 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 1 Jun 2012 16:19:38 +0200 Subject: [PATCH] Bug 8180 - cataloguing/additem.pl plack scoping $dbh needs our scoping when using "Add item" to prevent error Can't call method "prepare" on an undefined value at /srv/koha/cataloguing/additem.pl line 88. Test scenario: 1. start intranet with plack 2. select one Edit items on one record 3. fill in new item and click on "Add item" Signed-off-by: Julian Maurice Signed-off-by: Paul Poulain --- cataloguing/additem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 91b4c9930d..85432973e8 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -37,7 +37,7 @@ use C4::Search; use MARC::File::XML; use URI::Escape; -my $dbh = C4::Context->dbh; +our $dbh = C4::Context->dbh; sub find_value { my ($tagfield,$insubfield,$record) = @_; -- 2.39.5