From 67b6e9f3fb4034482ab2de72191e980e8a5bd0b6 Mon Sep 17 00:00:00 2001 From: Matt Tyson Date: Fri, 22 Jan 2016 22:30:22 +0000 Subject: 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. --- Bugzilla/Bug.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'Bugzilla/Bug.pm') 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... -- cgit v1.2.3-24-g4f1b