Bug 491316 - Allow the reporter to enter keywords at bug creation
r=sgreen, a=sgreen git-svn-id: svn://10.0.0.236/trunk@264941 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
aef015e77f
commit
7589871fca
@ -1 +1 @@
|
|||||||
8683
|
8684
|
||||||
@ -1713,13 +1713,7 @@ sub _check_keywords {
|
|||||||
$keywords_in = trim($keywords_in);
|
$keywords_in = trim($keywords_in);
|
||||||
$keyword_array = [split(/[\s,]+/, $keywords_in)];
|
$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;
|
my %keywords;
|
||||||
foreach my $keyword (@$keyword_array) {
|
foreach my $keyword (@$keyword_array) {
|
||||||
next unless $keyword;
|
next unless $keyword;
|
||||||
|
|||||||
@ -595,17 +595,17 @@ TUI_hide_default('attachment_text_field');
|
|||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
<tbody class="expert_fields">
|
<tbody class="expert_fields">
|
||||||
|
[% IF use_keywords %]
|
||||||
|
<tr>
|
||||||
|
[% INCLUDE bug/field.html.tmpl
|
||||||
|
bug = default, field = bug_fields.keywords, editable = 1,
|
||||||
|
value = keywords, possible_values = all_keywords,
|
||||||
|
desc_url = "describekeywords.cgi", value_span = 2
|
||||||
|
%]
|
||||||
|
</tr>
|
||||||
|
[% END %]
|
||||||
|
|
||||||
[% IF user.in_group('editbugs', product.id) %]
|
[% IF user.in_group('editbugs', product.id) %]
|
||||||
[% IF use_keywords %]
|
|
||||||
<tr>
|
|
||||||
[% INCLUDE bug/field.html.tmpl
|
|
||||||
bug = default, field = bug_fields.keywords, editable = 1,
|
|
||||||
value = keywords, possible_values = all_keywords,
|
|
||||||
desc_url = "describekeywords.cgi", value_span = 2
|
|
||||||
%]
|
|
||||||
</tr>
|
|
||||||
[% END %]
|
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
[% INCLUDE "bug/field-label.html.tmpl"
|
[% INCLUDE "bug/field-label.html.tmpl"
|
||||||
field = bug_fields.dependson editable = 1
|
field = bug_fields.dependson editable = 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user