From fd93bd0bf90836be82c5271bb36e46cca83735f4 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 30 Jun 2010 20:42:54 +0000 Subject: cust_main exports! cust_main-exports config option and part_export/cust_http.pm export, RT#8952 --- httemplate/config/config-process.cgi | 2 +- httemplate/config/config.cgi | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) (limited to 'httemplate/config') diff --git a/httemplate/config/config-process.cgi b/httemplate/config/config-process.cgi index c2b11b8fc..4e1c85a03 100644 --- a/httemplate/config/config-process.cgi +++ b/httemplate/config/config-process.cgi @@ -73,7 +73,7 @@ % my $record = qsearchs($table, { $pkey => $key }); % my $value = $record ? "$key: ".$record->$namecol() : $key; configCell.innerHTML = <% $value |js_string %>; -% } elsif ( $type eq 'select-sub' ) { +% } elsif ( $type eq 'select-sub' && ! $i->multiple ) { configCell.innerHTML = <% $conf->config($i->key, $agentnum) |js_string %> + ': ' + <% &{ $i->option_sub }( $conf->config($i->key, $agentnum) ) |js_string %>; diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index ce96bc162..cde48382a 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -131,7 +131,11 @@ Setting <% $key %> % } elsif ( $type eq 'select-sub' ) { - " <% $config_item->multiple ? 'MULTIPLE' : '' %>> + +% unless ( $config_item->multiple ) { +