diff options
author | Dylan Hardison <dylan@mozilla.com> | 2016-07-13 02:56:43 +0200 |
---|---|---|
committer | Dylan Hardison <dylan@mozilla.com> | 2016-07-13 02:56:57 +0200 |
commit | af9f0e174a76ecd2a58d7f85ff7fd75ca5aab41f (patch) | |
tree | e2e103fd465abf7cdfacecf699cca2af9d0e5005 /Bugzilla | |
parent | 149769378a6ffc3bf4407866d2ccb23296ddbc23 (diff) | |
download | bugzilla-af9f0e174a76ecd2a58d7f85ff7fd75ca5aab41f.tar.gz bugzilla-af9f0e174a76ecd2a58d7f85ff7fd75ca5aab41f.tar.xz |
Bug 1284521 - Reference is already weak at Bugzilla/Comment.pm line 245.
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Comment.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Comment.pm b/Bugzilla/Comment.pm index ff718c9e1..2fe86253b 100644 --- a/Bugzilla/Comment.pm +++ b/Bugzilla/Comment.pm @@ -34,7 +34,7 @@ use Bugzilla::User; use Bugzilla::Util; use List::Util qw(first); -use Scalar::Util qw(blessed weaken); +use Scalar::Util qw(blessed weaken isweak); ############################### #### Initialization #### @@ -242,7 +242,7 @@ sub bug { my $self = shift; require Bugzilla::Bug; my $bug = $self->{bug} ||= new Bugzilla::Bug($self->bug_id); - weaken($self->{bug}); + weaken($self->{bug}) unless isweak($self->{bug}); return $bug; } |