diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Object.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Object.pm b/Bugzilla/Object.pm index b1bc229bf..4525fa78a 100644 --- a/Bugzilla/Object.pm +++ b/Bugzilla/Object.pm @@ -477,6 +477,7 @@ sub update { $dbh->bz_commit_transaction(); $self->_cache_remove({ id => $self->id }); + $self->_cache_remove({ name => $self->name }) if $self->name; if (wantarray) { return (\%changes, $old_self); @@ -496,6 +497,7 @@ sub remove_from_db { $dbh->do("DELETE FROM $table WHERE $id_field = ?", undef, $self->id); $dbh->bz_commit_transaction(); $self->_cache_remove({ id => $self->id }); + $self->_cache_remove({ name => $self->name }) if $self->name; undef $self; } |