summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorMatt Tyson <mtyson@redhat.com>2016-01-22 23:30:22 +0100
committerDavid Lawrence <dkl@mozilla.com>2016-01-22 23:30:22 +0100
commit67b6e9f3fb4034482ab2de72191e980e8a5bd0b6 (patch)
tree037a922629dac88c9febe584f9d6ddc970bc4365 /Bugzilla/Bug.pm
parent871de5e2dbb48867b08371ce90881d8f85b18ff1 (diff)
downloadbugzilla-67b6e9f3fb4034482ab2de72191e980e8a5bd0b6.tar.gz
bugzilla-67b6e9f3fb4034482ab2de72191e980e8a5bd0b6.tar.xz
Bug 1159057 - Bug create and update hooks are called unexpectedly
- Fixed regression found by test_flags2.t where flag id was not present in show_bug.cgi for newly created bugs.
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 4f12c179f..37f492337 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -814,6 +814,7 @@ sub create {
foreach my $flag (@{$bug->flags}) {
Bugzilla::Flag->create($flag);
}
+ delete $bug->{flag_types}; # cause flag_types to be reloaded with newly created flags
}
# Comment #0 handling...