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

(-)a/Koha/AuthorisedValues.pm (-4 / +6 lines)
Lines 65-75 sub search_by_koha_field { Link Here
65
    return unless $kohafield;
65
    return unless $kohafield;
66
66
67
    return $self->SUPER::search(
67
    return $self->SUPER::search(
68
        {   'marc_subfield_structures.frameworkcode' => $frameworkcode,
68
        {
69
            'marc_subfield_structures.frameworkcode' => $frameworkcode,
69
            'marc_subfield_structures.kohafield'     => $kohafield,
70
            'marc_subfield_structures.kohafield'     => $kohafield,
70
            ( defined $category ? ( category_name    => $category )         : () ),
71
            ( defined $category ? ( category_name => $category ) : () ),
71
        },
72
        },
72
        {   join     => { category => 'marc_subfield_structures' },
73
        {
74
            join     => { category => 'marc_subfield_structures' },
75
            order_by => [ 'category', 'lib', 'lib_opac' ],
73
            distinct => 1,
76
            distinct => 1,
74
        }
77
        }
75
    );
78
    );
76
- 

Return to bug 27565