From c93b48cc0c032b6766a64d44849a8c99e62d97e6 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Fri, 22 Oct 2010 16:01:20 +0200 Subject: Bug 302293: Editing a flag type should tell me which changes have been made a=LpSolit (module owner) --- editflagtypes.cgi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'editflagtypes.cgi') 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]; -- cgit v1.2.3-24-g4f1b