From: Matt Tyson Date: Fri, 22 Jan 2016 22:30:22 +0000 (+0000) Subject: Bug 1159057 - Bug create and update hooks are called unexpectedly X-Git-Tag: release-5.1.1~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67b6e9f3fb4034482ab2de72191e980e8a5bd0b6;p=thirdparty%2Fbugzilla.git 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. --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 4f12c179f6..37f492337e 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...