Attachment #364978: patch, v1 for bug #480999

View | Details | Raw Unified | Return to bug 480999
Collapse All | Expand All

(-)Bugzilla/Search.pm (-9 / +12 lines)
Line     Link Here 
 Lines 237-251   sub init { Link Here 
237
            next;
237
            next;
238
        }
238
        }
239
        my $type = $params->param("emailtype$id");
239
        my $type = $params->param("emailtype$id");
240
        if ($type eq "exact") {
240
        $type = "anyexact" if ($type eq "exact");
241
            $type = "anyexact";
242
            foreach my $name (split(',', $email)) {
243
                $name = trim($name);
244
                if ($name) {
245
                    login_to_id($name, THROW_ERROR);
246
                }
247
            }
248
        }
249
241
250
        my @clist;
242
        my @clist;
251
        foreach my $field ("assigned_to", "reporter", "cc", "qa_contact") {
243
        foreach my $field ("assigned_to", "reporter", "cc", "qa_contact") {
 Lines 259-264   sub init { Link Here 
259
        if (@clist) {
251
        if (@clist) {
260
            push(@specialchart, \@clist);
252
            push(@specialchart, \@clist);
261
        }
253
        }
254
        else {
255
            # No field is selected. Nothing to see here.
256
            next;
257
        }
258
259
        if ($type eq "anyexact") {
260
            foreach my $name (split(',', $email)) {
261
                $name = trim($name);
262
                login_to_id($name, THROW_ERROR) if $name;
263
            }
264
        }
262
    }
265
    }
263
266
264
    my $chfieldfrom = trim(lc($params->param('chfieldfrom'))) || '';
267
    my $chfieldfrom = trim(lc($params->param('chfieldfrom'))) || '';

Return to bug 480999