summaryrefslogtreecommitdiff
path: root/httemplate/config
diff options
context:
space:
mode:
authorivan <ivan>2009-05-03 01:45:09 +0000
committerivan <ivan>2009-05-03 01:45:09 +0000
commite91ac7e6e069df321b815b08bf0e35d5fd3bd8f7 (patch)
treea91e989f5959824d2267068e764d81a3b46ca325 /httemplate/config
parent53cadf47dea115cf804d07beb58c7de67429873f (diff)
add ability to delete invoice_latexreturnaddress and invoice_htmlreturnaddress too, RT#5218
Diffstat (limited to 'httemplate/config')
-rw-r--r--httemplate/config/config-view.cgi6
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi
index 9b5b132..c5ac1a6 100644
--- a/httemplate/config/config-view.cgi
+++ b/httemplate/config/config-view.cgi
@@ -100,7 +100,8 @@ Click on a configuration value to change it.
% my $confnum =
% _config_agentonly($conf, $i->key, $agent->agentnum)->confnum;
(<A HREF="javascript:areyousure('delete this agent override', 'config-delete.cgi?confnum=<% $confnum %>;redirect=config_view_showagent')">delete agent override</A>)
-% } 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 +320,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';