Bug 27380: FIX Reports/Guided.t
[koha-ffzg.git] / labels / label-manage.pl
index 1d8a34e..8f53a70 100755 (executable)
@@ -30,13 +30,12 @@ use C4::Output qw(output_html_with_http_headers);
 use C4::Creators;
 use C4::Labels;
 
-my $cgi = new CGI;
+my $cgi = CGI->new;
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
     {
         template_name   => "labels/label-manage.tt",
         query           => $cgi,
         type            => "intranet",
-        authnotrequired => 0,
         flagsrequired   => { catalogue => 1 },
         debug           => 1,
     }
@@ -61,18 +60,19 @@ my $display_columns = { layout =>   [  # db column       => {col label
                                         {profile_id      => {label => 'Profile ID',     link_field      => 0}},
                                         {printer_name    => {label => 'Printer Name',   link_field      => 0}},
                                         {paper_bin       => {label => 'Paper Bin',      link_field      => 0}},
-                                        {_template_code  => {label => 'Template Name',  link_field      => 0}},     # this display column does not have a corrisponding db column in the profile table, hence the underscore
+                                        {_template_code  => {label => 'Template Name',  link_field      => 0}},     # this display column does not have a corresponding db column in the profile table, hence the underscore
                                         {select          => {label => 'Actions',         value           => 'profile_id'}},
                                     ],
                         batch =>    [
                                         {batch_id        => {label => 'Batch ID',       link_field      => 0}},
+                                        {description     => {label => 'Description',    link_field      => 0}},
                                         {_item_count     => {label => 'Item Count',     link_field      => 0}},
                                         {select          => {label => 'Actions',         value           => 'batch_id'}},
                                         {select1         => {label => ' ',           link_field       => 'batch_id'}},
                                     ],
 };
 
-my $label_element = $cgi->param('label_element') || 'template';   # default to template managment
+my $label_element = $cgi->param('label_element') || 'template';   # default to template management
 my $op = $cgi->param('op') || 'none';
 my $element_id = $cgi->param('element_id') || undef;
 my $error = $cgi->param('error') || 0;