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

(-)a/Koha/AdditionalContent.pm (-2 / +1 lines)
Lines 136-142 sub translated_content { Link Here
136
    my ( $self, $lang ) = @_;
136
    my ( $self, $lang ) = @_;
137
    my $content = $self->translated_contents->search(
137
    my $content = $self->translated_contents->search(
138
        { lang => [ 'default', ( $lang ? $lang : () ) ] },
138
        { lang => [ 'default', ( $lang ? $lang : () ) ] },
139
        { ( $lang ? ( order_by => \[ "field(lang, '" . $lang . "', 'default')" ] ) : () ) }
139
        { ( $lang ? ( order_by => \[ "field(lang, " . C4::Context->dbh->quote($lang) . ", 'default')" ] ) : () ) }
140
    )->next;
140
    )->next;
141
    return $content;
141
    return $content;
142
}
142
}
143
- 

Return to bug 36875