From ad9d2eb59d635d1d7a4fb8b2bf110c9aca495ae1 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 24 Oct 2009 05:24:53 +0000 Subject: Bug 522404: Allow Bugzilla::Product->create to create multiple products in one script. Patch by Max Kanat-Alexander r=dkl, a=mkanat --- Bugzilla/Product.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Bugzilla/Product.pm') diff --git a/Bugzilla/Product.pm b/Bugzilla/Product.pm index ddf60177d..7feaa4862 100644 --- a/Bugzilla/Product.pm +++ b/Bugzilla/Product.pm @@ -112,6 +112,7 @@ sub create { my $create_series = delete $params->{create_series}; my $product = $class->insert_create_data($params); + Bugzilla->user->clear_product_cache(); # Add the new version and milestone into the DB as valid values. Bugzilla::Version->create({name => $version, product => $product}); @@ -364,6 +365,7 @@ sub update { $dbh->bz_commit_transaction(); # Changes have been committed. delete $self->{check_group_controls}; + Bugzilla->user->clear_product_cache(); # Now that changes have been committed, we can send emails to voters. foreach my $msg (@msgs) { -- cgit v1.2.3-24-g4f1b