summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-03-27 20:19:13 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-03-27 20:19:13 +0100
commita2e427f167beaf671889d51ec1e0ab4846cce0d0 (patch)
tree94c7f4fb848207ea7f3ec8fb4c7c6d51fad20881 /Bugzilla
parent4c5154a99dcf44bf5cbb429d3387f6f5714a6b02 (diff)
downloadbugzilla-a2e427f167beaf671889d51ec1e0ab4846cce0d0.tar.gz
bugzilla-a2e427f167beaf671889d51ec1e0ab4846cce0d0.tar.xz
Bug 855414 - Editing of FlagTypeComment values for each status is broken due to the 4.2 upgrade
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/FlagType.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/FlagType.pm b/Bugzilla/FlagType.pm
index 617ea54b7..f2afb6f95 100644
--- a/Bugzilla/FlagType.pm
+++ b/Bugzilla/FlagType.pm
@@ -52,6 +52,7 @@ use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Bugzilla::Group;
+use Bugzilla::Hook;
use base qw(Bugzilla::Object);
@@ -133,6 +134,8 @@ sub create {
exclusions => $exclusions });
$flagtype->update();
+ Bugzilla::Hook::process('flagtype_end_of_create', { type => $flagtype });
+
$dbh->bz_commit_transaction();
return $flagtype;
}
@@ -201,6 +204,9 @@ sub update {
undef, $self->id);
}
+ Bugzilla::Hook::process('flagtype_end_of_update',
+ { type => $self, changed => $changes });
+
$dbh->bz_commit_transaction();
return $changes;
}