[Koha-bugs] [Bug 30639] Patron search does not split search terms
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri May 6 10:42:39 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30639
--- Comment #7 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
(In reply to Marcel de Rooy from comment #6)
> # Pattern terms must be split
> $s->fill_form( { search_patron_filter => 'test patron' } );
> $s->submit_form;
>
> $s->wait_for_ajax;
> is( $driver->find_element('//div[@id="'.$table_id.'_info"]')->get_text,
> sprintf('Showing 1 to %s of %s entries (filtered from %s total entries)',
> $PatronsPerPage, 26, $total_number_of_patrons) );
>
> Hmm I cant run this test. But Nick tested it.
> Just dont understand the 26 here. Reading the test I expect 25 ?
For most of the test we are filtering by library and so we get the 25 from
77 for my $i ( 1 .. 25 ) {
78 push @patrons,
79 $builder->build_object(
But there is a 26th patron matching test_patron_*
97 push @patrons,
98 $builder->build_object(
99 {
100 class => 'Koha::Patrons',
101 value => {
102 surname => "test_patron_26",
Which is from a different library.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list