From 8045fdc1eeec1994e6e81085b81862dea8f98363 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Wed, 27 Jul 2016 11:35:09 +0200 Subject: [PATCH] Bug 16987: Sub duplicate_framework in admin/marctagstructure.pl can't see variable $cache Test plan: 0) Ensure you are running on plack 1) Create new bibliographic framework 2) Go to Marc structure and select some existing framework to duplicate it to this new framework 3) You see internal server error (and there is a log in plack-error.log) 4) Go to biblioframeworks administration and MARC structure for that new framework, you see the fields are filled up 5) Apply the patch 6) Repeat 1 and 2 7) Everything should work fine this time - no error --- admin/marctagstructure.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/marctagstructure.pl b/admin/marctagstructure.pl index 27d9592..ce7e792 100755 --- a/admin/marctagstructure.pl +++ b/admin/marctagstructure.pl @@ -46,7 +46,7 @@ my $pagesize = 20; my $script_name = "/cgi-bin/koha/admin/marctagstructure.pl"; my $dbh = C4::Context->dbh; -my $cache = Koha::Cache->get_instance(); +our $cache = Koha::Cache->get_instance(); # open template my ($template, $loggedinuser, $cookie) -- 2.1.4