From b29d11c50a10a98f6275eba03bdb93ea3215f593 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sun, 11 Mar 2018 23:44:43 -0400 Subject: fix default security bug id thing --- extensions/BMO/Extension.pm | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'extensions/BMO') diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index 322d03769..817fd1d74 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -813,31 +813,6 @@ sub quicksearch_map { } } -sub object_before_create { - my ($self, $args) = @_; - return unless $args->{class}->isa('Bugzilla::Product'); - - my $cgi = Bugzilla->cgi; - my $params = $args->{params}; - foreach my $field (qw( default_platform_id default_op_sys_id security_group_id )) { - $params->{$field} = $cgi->param($field); - } -} - -sub object_end_of_set_all { - my ($self, $args) = @_; - my $object = $args->{object}; - return unless $object->isa('Bugzilla::Product'); - - my $cgi = Bugzilla->cgi; - my $params = $args->{params}; - foreach my $field (qw( default_platform_id default_op_sys_id security_group_id )) { - my $value = $cgi->param($field); - detaint_natural($value); - $object->set($field, $value); - } -} - sub object_end_of_create { my ($self, $args) = @_; my $class = $args->{class}; -- cgit v1.2.3-24-g4f1b