diff options
author | mkanat%bugzilla.org <> | 2008-08-07 04:38:22 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-08-07 04:38:22 +0000 |
commit | 70540fb131c58cf4fb012854759eef2d73528a30 (patch) | |
tree | 82b80ac0bebf506a2852a71606f52bda32f195d0 /editparams.cgi | |
parent | Bug 432331: Release Notes for Bugzilla 3.2 (diff) | |
download | bugzilla-70540fb131c58cf4fb012854759eef2d73528a30.tar.gz bugzilla-70540fb131c58cf4fb012854759eef2d73528a30.tar.bz2 bugzilla-70540fb131c58cf4fb012854759eef2d73528a30.zip |
Bug 438435: Need code hooks for authentication
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
Diffstat (limited to 'editparams.cgi')
-rwxr-xr-x | editparams.cgi | 7 |
1 files changed, 6 insertions, 1 deletions
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'}; |