Bug 5462: more dash fixing for variable names within scripts
authorChristopher Hall <chris.hall@catalyst.net.nz>
Tue, 16 Nov 2010 02:42:25 +0000 (15:42 +1300)
committerColin Campbell <colin.campbell@ptfs-europe.com>
Thu, 3 Feb 2011 09:57:45 +0000 (09:57 +0000)
Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
admin/authorised_values.pl

index 77ab6f1..c26f3a9 100755 (executable)
@@ -76,15 +76,15 @@ if ($op eq 'add_form') {
        }
        if ($id) {
                $template->param(action_modify => 1);
-               $template->param('heading-modify-authorized-value-p' => 1);
+               $template->param('heading_modify_authorized_value_p' => 1);
        } elsif ( ! $data->{'category'} ) {
                $template->param(action_add_category => 1);
-               $template->param('heading-add-new-category-p' => 1);
+               $template->param('heading_add_new_category_p' => 1);
        } else {
                $template->param(action_add_value => 1);
-               $template->param('heading-add-authorized-value-p' => 1);
+               $template->param('heading_add_authorized_value_p' => 1);
        }
-       $template->param('use-heading-flags-p' => 1);
+       $template->param('use_heading_flags_p' => 1);
        $template->param( category        => $data->{'category'},
                          authorised_value => $data->{'authorised_value'},
                          lib              => $data->{'lib'},