From fba498680a310860d433f7c78bde17a9e0b0f4be Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Sat, 8 Jul 2017 12:01:30 +0000 Subject: [PATCH] Bug 18060: Followup solving $layout error --- labels/label-home.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/labels/label-home.pl b/labels/label-home.pl index 4c5645b..7908c74 100755 --- a/labels/label-home.pl +++ b/labels/label-home.pl @@ -30,8 +30,10 @@ use C4::Creators::Layout; use C4::Creators::Template; use C4::Creators; use C4::Labels; +use C4::Labels::Layout; my $cgi = new CGI; +my $layout = C4::Labels::Layout->new(); my ( $template, $loggedinuser, $cookie ) = get_template_and_user( { template_name => "labels/label-home.tt", @@ -46,7 +48,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( my $op = $cgi->param('op') || ''; my $layout_id = $cgi->param('layout_id') || $cgi->param('element_id') || ''; my $layout_choice = $cgi->param('layout_choice') || ''; -my $layout = C4::Labels::Layout->new(); sub _set_selected { my ($type_list, $object, $data_type) = @_; -- 2.1.4