diff options
author | ivan <ivan> | 2009-11-03 03:13:46 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-11-03 03:13:46 +0000 |
commit | 29347e1d34d5468994af6e219f00582e525688ae (patch) | |
tree | 3bf794f471abd599168a831c88c42f6794e498c9 /httemplate/config | |
parent | dae56fee4a158dc5becbcfb6bbb522c052bf4b13 (diff) |
(start of) reconcile breakage from stale accounts, RT#6407
Diffstat (limited to 'httemplate/config')
-rw-r--r-- | httemplate/config/config-process.cgi | 7 | ||||
-rw-r--r-- | httemplate/config/config-view.cgi | 2 | ||||
-rw-r--r-- | httemplate/config/config.cgi | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/httemplate/config/config-process.cgi b/httemplate/config/config-process.cgi index a241de854..50db40c31 100644 --- a/httemplate/config/config-process.cgi +++ b/httemplate/config/config-process.cgi @@ -43,14 +43,15 @@ foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) { } } elsif ( $type =~ /^(editlist|selectmultiple)$/ - or ( $type =~ /^select(-(sub|part_svc|part_pkg))?$/ || $i->multiple ) + or ( $type =~ /^select(-(sub|part_svc|part_pkg|pkg_class))?$/ + || $i->multiple ) ) { if ( scalar(@{[ $cgi->param($i->key.$n) ]}) ) { $conf->set($i->key, join("\n", @{[ $cgi->param($i->key.$n) ]} ), $agentnum); } else { $conf->delete($i->key, $agentnum); } - } elsif ( $type =~ /^(text|select(-(sub|part_svc|part_pkg))?)$/ ) { + } elsif ( $type =~ /^(text|select(-(sub|part_svc|part_pkg|pkg_class))?)$/ ) { if ( $cgi->param($i->key.$n) ne '' ) { $conf->set($i->key, $cgi->param($i->key.$n), $agentnum); } else { @@ -104,7 +105,7 @@ $conf->delete($_, $agentnum) foreach @delete; % } elsif ( $type eq 'text' || $type eq 'select' ) { configCell.innerHTML = <% $conf->exists($i->key, $agentnum) ? $conf->config($i->key, $agentnum) : '' |js_string %>; -% } elsif ( $type =~ /^select-(part_svc|part_pkg)$/ && ! $i->multiple ) { +% } elsif ( $type =~ /^select-(part_svc|part_pkg|pkg_class)$/ && ! $i->multiple ) { configCell.innerHTML = <% $conf->config($i->key, $agentnum) |js_string %> %# + ': ' + diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 51535d762..856a2eaef 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -209,7 +209,7 @@ Click on a configuration value to change it. </td> </tr> -% } elsif ( $type =~ /^select-(part_svc|part_pkg)$/ ) { +% } elsif ( $type =~ /^select-(part_svc|part_pkg|pkg_class)$/ ) { % my @keys = $conf->config($i->key, $agentnum); <tr> diff --git a/httemplate/config/config.cgi b/httemplate/config/config.cgi index 45d77ffce..c2b3e6d3c 100644 --- a/httemplate/config/config.cgi +++ b/httemplate/config/config.cgi @@ -308,7 +308,7 @@ my @config_items = $conf->config_items; my %confitems = map { $_->key => $_ } @config_items; my %element_types = map { $_ => 1 } qw( - select-part_svc select-part_pkg + select-part_svc select-part_pkg select-pkg_class ); </%once> |