summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/Extension.pm
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-11-25 06:08:29 +0100
committerByron Jones <glob@mozilla.com>2014-11-25 06:08:29 +0100
commit55d148d167630fce08f40e6fcf2ab9def0b9699d (patch)
treebe58dc3c44c5680c4574e3054b3be6ce9e5faebb /extensions/BMO/Extension.pm
parent9bb992c0b0607328cc2356cb35b2d439fd7024af (diff)
downloadbugzilla-55d148d167630fce08f40e6fcf2ab9def0b9699d.tar.gz
bugzilla-55d148d167630fce08f40e6fcf2ab9def0b9699d.tar.xz
Bug 1103837: Bug Bounty Entry Form no longer edits bounty attachment description
Diffstat (limited to 'extensions/BMO/Extension.pm')
-rw-r--r--extensions/BMO/Extension.pm5
1 files changed, 3 insertions, 2 deletions
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';