Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
ae0fc821
Commit
ae0fc821
authored
Aug 06, 2013
by
Sunil Joshi
Committed by
Simon Green
Aug 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 491316 - Allow the reporter to enter keywords at bug creation
r=sgreen, a=sgreen
parent
052096c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
17 deletions
+11
-17
Bug.pm
Bugzilla/Bug.pm
+1
-7
create.html.tmpl
template/en/default/bug/create/create.html.tmpl
+10
-10
No files found.
Bugzilla/Bug.pm
View file @
ae0fc821
...
...
@@ -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
;
...
...
template/en/default/bug/create/create.html.tmpl
View file @
ae0fc821
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment