From 7d90eaa8770c0b29567b78b89d81334211fa2482 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Wed, 2 Mar 2011 00:39:49 -0800 Subject: Bug 617641: Using any of the _realname columns in Search.pm all by themselves wasn't working properly. r=mkanat, a=mkanat (module owner) --- xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'xt/lib') diff --git a/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm b/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm index b891c1587..1e0a75f95 100644 --- a/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm +++ b/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm @@ -58,6 +58,18 @@ sub name { return "$name (Normal Params)"; } +sub search_columns { + my $self = shift; + my $field = $self->field; + # For the assigned_to, qa_contact, and reporter fields, have the + # "Normal Params" test check that the _realname columns work + # all by themselves. + if (grep($_ eq $field, EMAIL_FIELDS) && $self->field_object->buglist) { + return ['bug_id', "${field}_realname"] + } + return $self->SUPER::search_columns(@_); +} + sub search_params { my ($self) = @_; my $field = $self->field; @@ -103,4 +115,4 @@ sub search_params { return { $field => $value, "${field}_type" => $operator }; } -1; \ No newline at end of file +1; -- cgit v1.2.3-24-g4f1b