summaryrefslogtreecommitdiffstats
path: root/xt/lib/Bugzilla/Test/Search.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-09 03:47:39 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-07-09 03:47:39 +0200
commit3f40ba04a7bdea2f3f84202006cc55054d647afb (patch)
treeba24883638992e6011825c413611741382150ecd /xt/lib/Bugzilla/Test/Search.pm
parent38728c2f489618965067c133f31a12aa2fb88615 (diff)
downloadbugzilla-3f40ba04a7bdea2f3f84202006cc55054d647afb.tar.gz
bugzilla-3f40ba04a7bdea2f3f84202006cc55054d647afb.tar.xz
Bug 577588: xt/seach.t was sometimes not properly translating special
<> values into the actual bug value, for searching r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'xt/lib/Bugzilla/Test/Search.pm')
-rw-r--r--xt/lib/Bugzilla/Test/Search.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/xt/lib/Bugzilla/Test/Search.pm b/xt/lib/Bugzilla/Test/Search.pm
index 80e9e0c52..af595e373 100644
--- a/xt/lib/Bugzilla/Test/Search.pm
+++ b/xt/lib/Bugzilla/Test/Search.pm
@@ -604,12 +604,12 @@ sub _create_one_bug {
# All the bugs are created with everconfirmed = 0.
$params{bug_status} = 'UNCONFIRMED';
my $bug = Bugzilla::Bug->create(\%params);
-
+
# These are necessary for the changedfrom tests.
my $extra_values = $self->_extra_bug_create_values->{$number};
- foreach my $field qw(comments remaining_time flags percentage_complete
+ foreach my $field qw(comments remaining_time percentage_complete
keyword_objects everconfirmed dependson blocked
- groups_in)
+ groups_in classification)
{
$extra_values->{$field} = $bug->$field;
}
@@ -705,6 +705,7 @@ sub _create_one_bug {
$bug->set_flags([], $flags);
$timestamp->set(second => $number);
$bug->update($timestamp->ymd . ' ' . $timestamp->hms);
+ $extra_values->{flags} = $bug->flags;
# It's not generally safe to do update() multiple times on
# the same Bug object.