X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fconfig%2Fconfig-view.cgi;h=9e9e64eb2c7b4e410e8893c1a197f2d0031cd88d;hb=44a63e5978af2b5b4e00cabbc4b3541df4144305;hp=9b5b132519aaea05af598f17f0601ee74daf5766;hpb=53cadf47dea115cf804d07beb58c7de67429873f;p=freeside.git diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi index 9b5b13251..9e9e64eb2 100644 --- a/httemplate/config/config-view.cgi +++ b/httemplate/config/config-view.cgi @@ -78,6 +78,8 @@ Click on a configuration value to change it. % foreach my $agent ( @agents ) { % my $agentnum = $agent ? $agent->agentnum : ''; % +% next if $section eq 'deprecated' && ! $conf->exists($i->key, $agentnum); +% % my $label = $i->key; % $label = '['. $agent->agent. "] $label" % if $agent && $cgi->param('showagent'); @@ -100,7 +102,8 @@ Click on a configuration value to change it. % my $confnum = % _config_agentonly($conf, $i->key, $agent->agentnum)->confnum; (delete agent override) -% } elsif ( $i->base_key ) { +% } elsif ( $i->base_key +% || ( $deleteable{$i->key} && $conf->exists($i->key) ) ) { % my $confnum = % $agent % ? _config_agentonly($conf, $i->key, $agent->agentnum)->confnum @@ -319,6 +322,9 @@ my $conf = new FS::Conf; my @config_items = grep { $page_agent ? $_->per_agent : 1 } $conf->config_items; +my @deleteable = qw( invoice_latexreturnaddress invoice_htmlreturnaddress ); +my %deleteable = map { $_ => 1 } @deleteable; + my @sections = qw(required billing username password UI session shell BIND ); push @sections, '', 'deprecated';