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/User.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Bugzilla/User.pm') diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 50147f90a..7057ec90a 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -659,6 +659,13 @@ sub visible_bugs { return [grep { $visible_cache->{blessed $_ ? $_->id : $_} } @$bugs]; } +sub clear_product_cache { + my $self = shift; + delete $self->{enterable_products}; + delete $self->{selectable_products}; + delete $self->{selectable_classifications}; +} + sub can_see_product { my ($self, $product_name) = @_; @@ -1962,6 +1969,12 @@ care of by the constructor. However, when updating the email address, the user may be placed into different groups, based on a new email regexp. This method should be called in such a case to force reresolution of these groups. +=item C + +Clears the stored values for L, +L, etc. so that their data will be read from +the database again. Used mostly by L. + =item C Description: Returns all products the user is allowed to access. This list -- cgit v1.2.3-24-g4f1b