Bug 21411: (follow-up) Missing filters and unused variable
authorNick Clemens <nick@bywatersolutions.com>
Mon, 4 Mar 2019 16:40:17 +0000 (11:40 -0500)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 10 May 2019 18:59:39 +0000 (18:59 +0000)
POD warnings from QA tool are false positives (basic functionsn POD not
needed)

Signed-off-by: Liz Rea <liz@catalyst.net.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/editor.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/adveditorshortcuts.tt
tools/adveditorshortcuts.pl

index 9c49cc8..9057530 100644 (file)
     <tbody>
         [% FOREACH shortcut IN shortcuts %]
             <tr>
-                <td>[% shortcut.shortcut_keys %]</td>
-                <td>[% shortcut.shortcut_desc %]</td>
+                <td>[% shortcut.shortcut_keys | html %]</td>
+                <td>[% shortcut.shortcut_desc | html %]</td>
             </tr>
         [% END %]
         <tr>
index c1b98dc..abbc4ac 100644 (file)
                         <tbody>
                            [% FOREACH shortcut IN shortcuts %]
                         <tr>
-                            <td><label for="shortcut_keys">[% shortcut.shortcut_desc %]</label></td>
+                            <td><label for="shortcut_keys">[% shortcut.shortcut_desc | html %]</label></td>
                             <td>
-                                <input type="hidden" name="shortcut_name" value="[% shortcut.shortcut_name %]">
-                                <input type="text" name="shortcut_keys" value="[% shortcut.shortcut_keys %]">
+                                <input type="hidden" name="shortcut_name" value="[% shortcut.shortcut_name | html %]">
+                                <input type="text" name="shortcut_keys" value="[% shortcut.shortcut_keys | html %]">
                            </td>
                         </tr>
                    [% END %]
index a5162b1..6e4279c 100755 (executable)
@@ -45,7 +45,6 @@ use Koha::KeyboardShortcuts;
 
 my $input            = new CGI;
 my $op               = $input->param('op') || 'list';
-my @messages;
 
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
     {   template_name   => "tools/adveditorshortcuts.tt",