Commit ae0fc821 authored by Sunil Joshi's avatar Sunil Joshi Committed by Simon Green

Bug 491316 - Allow the reporter to enter keywords at bug creation

r=sgreen, a=sgreen
parent 052096c9
......@@ -1714,12 +1714,6 @@ sub _check_keywords {
$keyword_array = [split(/[\s,]+/, $keywords_in)];
}
# On creation, only editbugs users can set keywords.
if (!ref $invocant) {
my $product = $params->{product};
return [] if !Bugzilla->user->in_group('editbugs', $product->id);
}
my %keywords;
foreach my $keyword (@$keyword_array) {
next unless $keyword;
......
......@@ -595,7 +595,6 @@ TUI_hide_default('attachment_text_field');
</tbody>
<tbody class="expert_fields">
[% IF user.in_group('editbugs', product.id) %]
[% IF use_keywords %]
<tr>
[% INCLUDE bug/field.html.tmpl
......@@ -606,6 +605,7 @@ TUI_hide_default('attachment_text_field');
</tr>
[% END %]
[% IF user.in_group('editbugs', product.id) %]
<tr>
[% INCLUDE "bug/field-label.html.tmpl"
field = bug_fields.dependson editable = 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment