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

(-)a/Koha/Template/Plugin/ExtendedAttributeTypes.pm (+2 lines)
Lines 33-39 sub all { Link Here
33
33
34
sub codes {
34
sub codes {
35
    my ( $self, $params ) = @_;
35
    my ( $self, $params ) = @_;
36
36
    return Koha::Patron::Attribute::Types->search($params)->get_column('code');
37
    return Koha::Patron::Attribute::Types->search($params)->get_column('code');
38
37
}
39
}
38
40
39
1;
41
1;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-1 / +2 lines)
Lines 286-292 Link Here
286
        }, {});
286
        }, {});
287
287
288
        [% IF Koha.Preference('ExtendedPatronAttributes') %]
288
        [% IF Koha.Preference('ExtendedPatronAttributes') %]
289
            [% SET extended_attribute_types = [ ExtendedAttributeTypes.codes( staff_searchable => 1, searched_by_default => 1 ) ] %]
289
            [% SET extended_attribute_types = ExtendedAttributeTypes.codes( staff_searchable => 1, searched_by_default => 1 ) %]
290
            [% IF ( extended_attribute_types ) %][% extended_attribute_types = [ extended_attribute_types ]  %][% END %]
290
            var extended_attribute_types = [% To.json(extended_attribute_types || []) | $raw %];
291
            var extended_attribute_types = [% To.json(extended_attribute_types || []) | $raw %];
291
        [% END %]
292
        [% END %]
292
293
(-)a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js (-2 / +1 lines)
Lines 909-915 function buildPatronSearchQuery(term, options) { Link Here
909
    if (
909
    if (
910
        typeof options !== "undefined" &&
910
        typeof options !== "undefined" &&
911
        ((options.search_fields == "standard" &&
911
        ((options.search_fields == "standard" &&
912
            options.extended_attribute_types) ||
912
            options.extended_attribute_types.length > 0) ||
913
            searched_attribute_fields.length > 0) &&
913
            searched_attribute_fields.length > 0) &&
914
        extendedPatronAttributes
914
        extendedPatronAttributes
915
    ) {
915
    ) {
916
- 

Return to bug 36025