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
c0c7dc6c
Commit
c0c7dc6c
authored
Sep 06, 2008
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 450197: Multi-select fields are ignored when cloning a bug
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent
28618aea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
25 deletions
+19
-25
enter_bug.cgi
enter_bug.cgi
+19
-25
No files found.
enter_bug.cgi
View file @
c0c7dc6c
...
...
@@ -391,17 +391,17 @@ foreach my $field (@enter_bug_fields) {
if
(
$cloned_bug_id
)
{
$default
{
'component_'
}
=
$cloned_bug
->
component
;
$default
{
'priority'
}
=
$cloned_bug
->
{
'priority'
}
;
$default
{
'bug_severity'
}
=
$cloned_bug
->
{
'bug_severity'
}
;
$default
{
'rep_platform'
}
=
$cloned_bug
->
{
'rep_platform'
}
;
$default
{
'op_sys'
}
=
$cloned_bug
->
{
'op_sys'
}
;
$default
{
'priority'
}
=
$cloned_bug
->
priority
;
$default
{
'bug_severity'
}
=
$cloned_bug
->
bug_severity
;
$default
{
'rep_platform'
}
=
$cloned_bug
->
rep_platform
;
$default
{
'op_sys'
}
=
$cloned_bug
->
op_sys
;
$vars
->
{
'short_desc'
}
=
$cloned_bug
->
{
'short_desc'
}
;
$vars
->
{
'bug_file_loc'
}
=
$cloned_bug
->
{
'bug_file_loc'
}
;
$vars
->
{
'short_desc'
}
=
$cloned_bug
->
short_desc
;
$vars
->
{
'bug_file_loc'
}
=
$cloned_bug
->
bug_file_loc
;
$vars
->
{
'keywords'
}
=
$cloned_bug
->
keywords
;
$vars
->
{
'dependson'
}
=
$cloned_bug_id
;
$vars
->
{
'blocked'
}
=
""
;
$vars
->
{
'deadline'
}
=
$cloned_bug
->
{
'deadline'
}
;
$vars
->
{
'deadline'
}
=
$cloned_bug
->
deadline
;
if
(
defined
$cloned_bug
->
cc
)
{
$vars
->
{
'cc'
}
=
join
(
" "
,
@
{
$cloned_bug
->
cc
});
...
...
@@ -410,30 +410,24 @@ if ($cloned_bug_id) {
}
foreach
my
$field
(
@enter_bug_fields
)
{
$vars
->
{
$field
->
name
}
=
$cloned_bug
->
{
$field
->
name
};
my
$field_name
=
$field
->
name
;
$vars
->
{
$field_name
}
=
$cloned_bug
->
$field_name
;
}
# We need to ensure that we respect the 'insider' status of
# the first comment, if it has one. Either way, make a note
# that this bug was cloned from another bug.
# We need to ensure that we respect the 'insider' status of
# the first comment, if it has one. Either way, make a note
# that this bug was cloned from another bug.
$cloned_bug
->
longdescs
();
my
$isprivate
=
$cloned_bug
->
{
'longdescs'
}
->
[
0
]
->
{
'isprivate'
};
my
$isprivate
=
$cloned_bug
->
longdescs
->
[
0
]
->
{
'isprivate'
};
$vars
->
{
'comment'
}
=
""
;
$vars
->
{
'commentprivacy'
}
=
0
;
if
(
!
(
$isprivate
)
||
(
(
Bugzilla
->
params
->
{
"insidergroup"
}
)
&&
(
Bugzilla
->
user
->
in_group
(
Bugzilla
->
params
->
{
"insidergroup"
})
)
)
)
{
$vars
->
{
'comment'
}
=
$cloned_bug
->
{
'longdescs'
}
->
[
0
]
->
{
'body'
};
if
(
!
(
$isprivate
)
||
Bugzilla
->
user
->
is_insider
)
{
$vars
->
{
'comment'
}
=
$cloned_bug
->
longdescs
->
[
0
]
->
{
'body'
};
$vars
->
{
'commentprivacy'
}
=
$isprivate
;
}
# Ensure that the groupset information is set up for later use.
$cloned_bug
->
groups
();
}
# end of cloned bug entry form
else
{
...
...
@@ -476,7 +470,7 @@ $vars->{'version'} = [map($_->name, @{$product->versions})];
if
(
(
$cloned_bug_id
)
&&
(
$product
->
name
eq
$cloned_bug
->
product
)
)
{
$default
{
'version'
}
=
$cloned_bug
->
{
'version'
}
;
$default
{
'version'
}
=
$cloned_bug
->
version
;
}
elsif
(
formvalue
(
'version'
))
{
$default
{
'version'
}
=
formvalue
(
'version'
);
}
elsif
(
defined
$cgi
->
cookie
(
"VERSION-"
.
$product
->
name
)
&&
...
...
@@ -562,9 +556,9 @@ foreach my $row (@$grouplist) {
#
if
(
(
$cloned_bug_id
)
&&
(
$product
->
name
eq
$cloned_bug
->
product
)
)
{
foreach
my
$i
(
0
..
(
@
{
$cloned_bug
->
{
'groups'
}}
-
1
)
)
{
if
(
$cloned_bug
->
{
'groups'
}
->
[
$i
]
->
{
'bit'
}
==
$id
)
{
$check
=
$cloned_bug
->
{
'groups'
}
->
[
$i
]
->
{
'ison'
};
foreach
my
$i
(
0
..
(
@
{
$cloned_bug
->
groups
}
-
1
)
)
{
if
(
$cloned_bug
->
groups
->
[
$i
]
->
{
'bit'
}
==
$id
)
{
$check
=
$cloned_bug
->
groups
->
[
$i
]
->
{
'ison'
};
}
}
}
...
...
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