From 126de7d0db1ce3a5f3378a92003c8e1de03e346a 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 --- cataloguing/additem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 91b4c99..8543297 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) = @_; -- 1.7.10