diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-07-08 18:47:39 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-07-08 18:47:39 -0700 |
commit | 3f40ba04a7bdea2f3f84202006cc55054d647afb (patch) | |
tree | ba24883638992e6011825c413611741382150ecd /xt/lib/Bugzilla/Test/Search.pm | |
parent | 38728c2f489618965067c133f31a12aa2fb88615 (diff) | |
download | bugs-3f40ba04a7bdea2f3f84202006cc55054d647afb.tar bugs-3f40ba04a7bdea2f3f84202006cc55054d647afb.tar.gz bugs-3f40ba04a7bdea2f3f84202006cc55054d647afb.tar.bz2 bugs-3f40ba04a7bdea2f3f84202006cc55054d647afb.tar.xz bugs-3f40ba04a7bdea2f3f84202006cc55054d647afb.zip |
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.pm | 7 |
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. |