From 55d148d167630fce08f40e6fcf2ab9def0b9699d Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 25 Nov 2014 13:08:29 +0800 Subject: Bug 1103837: Bug Bounty Entry Form no longer edits bounty attachment description --- extensions/BMO/Extension.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'extensions/BMO/Extension.pm') diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index cd712d7d6..700199f51 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -64,6 +64,7 @@ BEGIN { *Bugzilla::Product::default_security_group_obj = \&_default_security_group_obj; *Bugzilla::Product::group_always_settable = \&_group_always_settable; *Bugzilla::check_default_product_security_group = \&_check_default_product_security_group; + *Bugzilla::Attachment::is_bounty_attachment = \&_is_bounty_attachment; } sub template_before_process { @@ -206,7 +207,7 @@ sub bounty_attachment { my $input = Bugzilla->input_params; my $dbh = Bugzilla->dbh; my $bug = Bugzilla::Bug->check({ id => $input->{bug_id}, cache => 1 }); - my $attachment = first { $_ && is_bounty_attachment($_) } @{$bug->attachments}; + my $attachment = first { $_ && _is_bounty_attachment($_) } @{$bug->attachments}; $vars->{bug} = $bug; if ($input->{submit}) { @@ -246,7 +247,7 @@ sub bounty_attachment { } } -sub is_bounty_attachment { +sub _is_bounty_attachment { my ($attachment) = @_; return 0 unless $attachment->filename eq 'bugbounty.data'; -- cgit v1.2.3-24-g4f1b