]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1159057 - Bug create and update hooks are called unexpectedly
authorMatt Tyson <mtyson@redhat.com>
Fri, 22 Jan 2016 22:30:22 +0000 (22:30 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Fri, 22 Jan 2016 22:30:22 +0000 (22:30 +0000)
- Fixed regression found by test_flags2.t where flag id was not present
  in show_bug.cgi for newly created bugs.

Bugzilla/Bug.pm

index 4f12c179f6d632bc81b5aa0a1d0e5622ffb36a52..37f492337edef1d1147bd5571ff4896f070ea3e1 100644 (file)
@@ -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...