X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Freason.html;h=7c0722ceaf3d797d85dfde7e865ff2af11a4af57;hb=a5ca508ed3bf1bcb03df26d35d1316b3c313820a;hp=2f59328460938ce38ff99fb6836852a39bf3dcb2;hpb=ce98306f315a53f2ac4b8c010341c4f84bf728a8;p=freeside.git diff --git a/httemplate/edit/reason.html b/httemplate/edit/reason.html index 2f5932846..7c0722cea 100644 --- a/httemplate/edit/reason.html +++ b/httemplate/edit/reason.html @@ -9,6 +9,9 @@ % % my (@types) = qsearch( 'reason_type', { 'class' => $class } ); % +% unless (scalar(@types)) { +% print $cgi->redirect( "reason_type.html?class=$class" ); +% } <% include( 'elements/edit.html', 'name' => ucfirst($classname) . ' Reason', 'table' => 'reason',