From 70540fb131c58cf4fb012854759eef2d73528a30 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 7 Aug 2008 04:38:22 +0000 Subject: Bug 438435: Need code hooks for authentication Patch By Max Kanat-Alexander r=LpSolit, a=mkanat --- editparams.cgi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'editparams.cgi') diff --git a/editparams.cgi b/editparams.cgi index 9b0094799..7de38aa7b 100755 --- a/editparams.cgi +++ b/editparams.cgi @@ -71,12 +71,17 @@ foreach my $panel (keys %$param_panels) { $current_module = $panel if ($current_panel eq lc($panel)); } +my %hook_panels = map { $_->{name} => { params => $_->{param_list} } } + @panels; +# Note that this hook is also called in Bugzilla::Config. +Bugzilla::Hook::process('config-modify_panels', { panels => \%hook_panels }); + $vars->{panels} = \@panels; if ($action eq 'save' && $current_module) { check_token_data($token, 'edit_parameters'); my @changes = (); - my @module_param_list = "$param_panels->{$current_module}"->get_param_list(1); + my @module_param_list = @{ $hook_panels{lc($current_module)}->{params} }; foreach my $i (@module_param_list) { my $name = $i->{'name'}; -- cgit v1.2.3-24-g4f1b