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
e7a85a44
Commit
e7a85a44
authored
9 years ago
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1191510: Tags with spaces in them are incorrectly split into several tags
r=gerv a=dkl
parent
568c9330
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
process_bug.cgi
process_bug.cgi
+1
-1
No files found.
process_bug.cgi
View file @
e7a85a44
...
...
@@ -348,7 +348,7 @@ if (defined $cgi->param('id')) {
# Tags can only be set to one bug at once.
if
(
should_set
(
'tag'
))
{
my
@new_tags
=
split
(
/[\s,]+
/
,
$cgi
->
param
(
'tag'
));
my
@new_tags
=
grep
{
trim
(
$_
)
}
split
(
/,
/
,
$cgi
->
param
(
'tag'
));
my
(
$tags_removed
,
$tags_added
)
=
diff_arrays
(
$first_bug
->
tags
,
\
@new_tags
);
$first_bug
->
remove_tag
(
$_
)
foreach
@$tags_removed
;
$first_bug
->
add_tag
(
$_
)
foreach
@$tags_added
;
...
...
This diff is collapsed.
Click to expand it.
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