@@ -, +, @@ --- labels/label-home.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/labels/label-home.pl +++ a/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) = @_; --