From 5852295860d51040f69bbaf957cc8ed6bfd7358b Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Fri, 30 Oct 2015 21:03:58 -0400 Subject: Bug 1218457 - Allow localconfig to override (force) certain data/params values --- editparams.cgi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'editparams.cgi') 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, }; -- cgit v1.2.3-24-g4f1b