[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:38:43 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31383

--- Comment #127 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
(In reply to Tomás Cohen Arazi from comment #125)
> 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 ) %]

Please see last latch!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list