Bug 581327: The patch to allow commas in Product (etc.) names broke the
entering of comma-separated values in other search fields, like bug_id. So now we split on commas in text fields, but not for <select> fields. r=LpSolit, a=LpSolit git-svn-id: svn://10.0.0.236/branches/BUGZILLA-4_0-BRANCH@260932 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1 +1 @@
|
||||
7352
|
||||
7353
|
||||
@@ -564,7 +564,8 @@ sub init {
|
||||
}
|
||||
|
||||
foreach my $field ($params->param()) {
|
||||
if (grep { $_->name eq $field } @legal_fields) {
|
||||
my ($field_obj) = grep { $_->name eq $field } @legal_fields;
|
||||
if ($field_obj) {
|
||||
my $type = $params->param("${field}_type");
|
||||
my @values = $params->param($field);
|
||||
if (!$type) {
|
||||
@@ -577,7 +578,10 @@ sub init {
|
||||
}
|
||||
$type = 'matches' if $field eq 'content';
|
||||
my $send_value = join(',', @values);
|
||||
if ($type eq 'anyexact') {
|
||||
if ( $type eq 'anyexact'
|
||||
and ($field_obj->is_select or $field eq 'version'
|
||||
or $field eq 'target_milestone') )
|
||||
{
|
||||
$send_value = \@values;
|
||||
}
|
||||
push(@specialchart, [$field, $type, $send_value]);
|
||||
|
||||
Reference in New Issue
Block a user