correct agent_defaultpkg handling
[freeside.git] / httemplate / edit / part_pkg.cgi
index 98ce71a..7c61154 100755 (executable)
@@ -162,7 +162,7 @@ Line-item revenue recognition
 
 </TD><TD VALIGN="top">
 
-% if ( $cgi->param('clone') ) {
+% if ( $cgi->param('clone') || $conf->exists('agent_defaultpkg') ) {
 
     <INPUT TYPE="hidden" NAME="agent_type" VALUE="">
 
@@ -178,7 +178,7 @@ Line-item revenue recognition
                       'table'        => 'agent_type',
                       'name_col'     => 'atype',
                       'value'        => \@agent_type,
-                      'empty_label'  => '(none)',
+                      'empty_label'  => 'select agent types',
                       'element_etc'  => 'multiple size="10"',
                     )
           %>