summaryrefslogtreecommitdiffstats
path: root/editparams.cgi
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2015-10-31 02:03:58 +0100
committerDylan William Hardison <dylan@hardison.net>2015-10-31 02:06:57 +0100
commit5852295860d51040f69bbaf957cc8ed6bfd7358b (patch)
treea0781afa608c45912a97c1b2ac3b75e0d8659f2b /editparams.cgi
parentf03cb21e297f73fcfca9740ff8e2c525a745d7ad (diff)
downloadbugzilla-5852295860d51040f69bbaf957cc8ed6bfd7358b.tar.gz
bugzilla-5852295860d51040f69bbaf957cc8ed6bfd7358b.tar.xz
Bug 1218457 - Allow localconfig to override (force) certain data/params values
Diffstat (limited to 'editparams.cgi')
-rwxr-xr-xeditparams.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/editparams.cgi b/editparams.cgi
index 8eb117a26..0731e5ee3 100755
--- a/editparams.cgi
+++ b/editparams.cgi
@@ -58,6 +58,7 @@ $current_panel = $1;
my $current_module;
my @panels = ();
my $param_panels = Bugzilla::Config::param_panels();
+my $override = Bugzilla->localconfig->{param_override};
foreach my $panel (keys %$param_panels) {
my $module = $param_panels->{$panel};
eval("require $module") || die $@;
@@ -66,6 +67,7 @@ foreach my $panel (keys %$param_panels) {
name => lc($panel),
current => ($current_panel eq lc($panel)) ? 1 : 0,
param_list => \@module_param_list,
+ param_override => { map { $_->{name} => $override->{$_->{name}} } @module_param_list },
sortkey => eval "\$${module}::sortkey;",
module => $module,
};