optimize CDR rating after timed rate perf regression, RT#15739
[freeside.git] / httemplate / browse / reason_type.html
index 09f451c..6b444ba 100644 (file)
@@ -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." .