on-the-fly alarm vendor / type / CS adding, RT#23694
authorIvan Kohler <ivan@freeside.biz>
Tue, 10 Dec 2013 07:38:13 +0000 (23:38 -0800)
committerIvan Kohler <ivan@freeside.biz>
Tue, 10 Dec 2013 07:38:13 +0000 (23:38 -0800)
httemplate/edit/process/elements/svc_Common.html

index e1b7cbe..55ecc5f 100644 (file)
@@ -11,6 +11,9 @@ my %opt = @_;
 my $table = $opt{'table'};
 $opt{'fields'} ||= [ fields($table) ];
 push @{ $opt{'fields'} }, qw( pkgnum svcpart );
+push @{ $opt{'fields'} }, @{ "FS::$table"->table_info->{'addl_process_fields'} }
+  if UNIVERSAL::can("FS::$table", 'table_info')
+  && "FS::$table"->table_info->{'addl_process_fields'};
 foreach (fields($table)) {
   if ( $cgi->param($_.'_classnum') ) {
     push @{ $opt{'fields'} }, $_.'_classnum';