[Koha-bugs] [Bug 31383] Additional contents: We need a parent and child table
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Oct 23 15:04:04 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31383
--- Comment #125 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
This should not work either I guess?
sub get_opac_news_by_id {
my ( $self, $params ) = @_;
my $news_id = $params->{news_id};
my $content = Koha::AdditionalContents->search(
{
location => ['opac_only', 'staff_and_opac'],
idnew => $news_id,
category => 'news',
}
);
because of `idnew`.
Used in the OPAC's main page:
$ git grep get_opac_news_by_id
opac-tmpl/bootstrap/en/modules/opac-main.tt: [% SET koha_news =
AdditionalContents.get_opac_news_by_id( news_id => news_id ) %]
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list