diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2010-10-22 16:01:20 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-10-22 16:01:20 +0200 |
commit | c93b48cc0c032b6766a64d44849a8c99e62d97e6 (patch) | |
tree | a5e4d897ece175cfd5e251c73944f5506f2159b4 /editflagtypes.cgi | |
parent | Bug 413648: Attachment mime type handling should strip leading and trailing s... (diff) | |
download | bugzilla-c93b48cc0c032b6766a64d44849a8c99e62d97e6.tar.gz bugzilla-c93b48cc0c032b6766a64d44849a8c99e62d97e6.tar.bz2 bugzilla-c93b48cc0c032b6766a64d44849a8c99e62d97e6.zip |
Bug 302293: Editing a flag type should tell me which changes have been made
a=LpSolit (module owner)
Diffstat (limited to 'editflagtypes.cgi')
-rwxr-xr-x | editflagtypes.cgi | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/editflagtypes.cgi b/editflagtypes.cgi index 20a4fc0f6..e2b8ba12c 100755 --- a/editflagtypes.cgi +++ b/editflagtypes.cgi @@ -306,12 +306,13 @@ if ($action eq 'update') { $flagtype->set_grant_group($grant_group); $flagtype->set_request_group($request_group); $flagtype->set_clusions({ inclusions => \@inclusions, exclusions => \@exclusions}); - $flagtype->update(); + my $changes = $flagtype->update(); delete_token($token); - $vars->{'name'} = $flagtype->name; - $vars->{'message'} = "flag_type_changes_saved"; + $vars->{'flagtype'} = $flagtype; + $vars->{'changes'} = $changes; + $vars->{'message'} = 'flag_type_updated'; my @flagtypes = Bugzilla::FlagType->get_all; $vars->{'bug_types'} = [grep { $_->target_type eq 'bug' } @flagtypes]; |