Commit 67b6e9f3 authored by Matt Tyson's avatar Matt Tyson Committed by David Lawrence

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.
parent 871de5e2
......@@ -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...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment