summaryrefslogtreecommitdiffstats
path: root/editflagtypes.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2010-10-22 16:01:20 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2010-10-22 16:01:20 +0200
commitc93b48cc0c032b6766a64d44849a8c99e62d97e6 (patch)
treea5e4d897ece175cfd5e251c73944f5506f2159b4 /editflagtypes.cgi
parentdcbab52d1366aa60b769ff59ad3f724c3b4c8d70 (diff)
downloadbugzilla-c93b48cc0c032b6766a64d44849a8c99e62d97e6.tar.gz
bugzilla-c93b48cc0c032b6766a64d44849a8c99e62d97e6.tar.xz
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-xeditflagtypes.cgi7
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];