X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fbrowse%2Freason_type.html;fp=httemplate%2Fbrowse%2Freason_type.html;h=6b444bad14d01e6304fb8a0349ceee1d75333e03;hb=e8a09e945986a32f9b7d0a5d546142ada91654ca;hp=09f451c9f01f517833fa292236ab80cc20209440;hpb=b8a41c45daf3e4cfa21200f5d9e59e38bd41293c;p=freeside.git diff --git a/httemplate/browse/reason_type.html b/httemplate/browse/reason_type.html index 09f451c9f..6b444bad1 100644 --- a/httemplate/browse/reason_type.html +++ b/httemplate/browse/reason_type.html @@ -33,11 +33,7 @@ die "access denied" $cgi->param('class') =~ /^(\w)$/ or die "illegal class"; my $class=$1; -my %classmap = ( 'C' => 'cancel', - 'S' => 'suspend', - ); - -my $classname = $classmap{$class}; +my $classname = $FS::reason_type::class_name{$class}; my $html_init = ucfirst($classname) . " reason types allow groups of $classname reasons for reporting purposes." .