Fixed bug #252
authorwolfpac444 <wolfpac444>
Mon, 2 Jun 2003 03:56:53 +0000 (03:56 +0000)
committerwolfpac444 <wolfpac444>
Mon, 2 Jun 2003 03:56:53 +0000 (03:56 +0000)
admin/authorised_values.pl

index 24fbc96..4adeae1 100755 (executable)
@@ -90,6 +90,8 @@ if ($op eq 'add_form') {
        }
        if ($searchfield) {
                $template->param(action => "Modify authorised value");
+       } elsif ( ! $data->{'category'} ) {
+               $template->param(action => "Add new category");
        } else {
                $template->param(action => "Add authorised value");
        }