View | Details | Raw Unified | Return to bug 29134
Collapse All | Expand All

(-)a/C4/Utils/DataTables/Members.pm (-4 / +2 lines)
Lines 162-170 sub search { Link Here
162
        if ( $searchfieldstype eq 'standard' and C4::Context->preference('ExtendedPatronAttributes') and $searchmember ) {
162
        if ( $searchfieldstype eq 'standard' and C4::Context->preference('ExtendedPatronAttributes') and $searchmember ) {
163
            my @matching_borrowernumbers = Koha::Patrons->filter_by_attribute_value($searchmember)->get_column('borrowernumber');
163
            my @matching_borrowernumbers = Koha::Patrons->filter_by_attribute_value($searchmember)->get_column('borrowernumber');
164
164
165
            for my $borrowernumber ( @matching_borrowernumbers ) {
165
            if ( @matching_borrowernumbers ) {
166
                push @where_strs_or, "borrowers.borrowernumber = ?";
166
                push @where_strs_or, " borrowers.borrowernumber IN (" . join(', ', @matching_borrowernumbers ) . ")";
167
                push @where_args, $borrowernumber;
168
            }
167
            }
169
        }
168
        }
170
169
171
- 

Return to bug 29134