From: Kohei Yoshino Date: Wed, 29 May 2019 03:14:33 +0000 (-0400) Subject: Bug 1376609 - Make needinfo field more visible when filing a new bug X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=73ccbbeada1c4c6b7fecc3cbf116f3f553d69394;p=thirdparty%2Fbugzilla.git Bug 1376609 - Make needinfo field more visible when filing a new bug --- diff --git a/extensions/Needinfo/Extension.pm b/extensions/Needinfo/Extension.pm index f9702a55f..4c41852df 100644 --- a/extensions/Needinfo/Extension.pm +++ b/extensions/Needinfo/Extension.pm @@ -69,6 +69,20 @@ sub install_before_final_checks { }); } +sub bug_end_of_create { + my ($self, $args) = @_; + my $params = Bugzilla->input_params; + + return unless $params->{needinfo_from}; + + # Add extra params + $params->{needinfo} = 1; + $params->{needinfo_role} = 'other'; + + # Do the rest + $self->bug_start_of_update($args); +} + # Clear the needinfo? flag if comment is being given by # requestee or someone used the override flag. sub bug_start_of_update { diff --git a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl index 43e632e6c..dc03248bc 100644 --- a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl +++ b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl @@ -184,7 +184,7 @@ $(function() {