[Koha-bugs] [Bug 17374] Make use of fields from syspref 'DefaultPatronSearchFields' in patron search fields dropdown

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 25 16:38:55 CEST 2018


Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
             Status|Passed QA                   |Failed QA

--- Comment #23 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
2 majors problems:

1. compare columns.def and patronfields.inc
=> They are the "same"

2. It does not work, and cannot work without changes to

Test: Add altcontactsurname to the pref, it appears in the dropdown list,
select it, search for something: everything is returned.

Because of the following:

my $searchfields = {
# list of available fields
then later:

130         for my $searchfield ( split /,/, $searchfields->{$searchfieldstype}
) {
131             push @where_strs_or, "borrowers." .
$dbh->quote_identifier($searchfield) . " LIKE ?";
132             push @where_args, $term;
133         }

You are receiving this mail because:
You are watching all bug changes.

More information about the Koha-bugs mailing list