]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 491316 - Allow the reporter to enter keywords at bug creation
authorSunil Joshi <joshi_sunil@in.com>
Tue, 6 Aug 2013 01:43:27 +0000 (11:43 +1000)
committerSimon Green <sgreen@redhat.com>
Tue, 6 Aug 2013 01:43:27 +0000 (11:43 +1000)
r=sgreen, a=sgreen

Bugzilla/Bug.pm
template/en/default/bug/create/create.html.tmpl

index f27baa532d2c2e2d3d7d242c22635dd32c811f90..842dacff4391219825a2e1b957b6b20257047f57 100644 (file)
@@ -1713,13 +1713,7 @@ sub _check_keywords {
         $keywords_in = trim($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;
     foreach my $keyword (@$keyword_array) {
         next unless $keyword;
index a2109c956fcdc890496e250f0b62e61b97d624c6..9c7775f078466e49ea3e58a0ab8799cf071706e3 100644 (file)
@@ -595,17 +595,17 @@ TUI_hide_default('attachment_text_field');
 </tbody>
 
 <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 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>
       [% INCLUDE "bug/field-label.html.tmpl"
         field = bug_fields.dependson editable = 1