https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31383
--- Comment #127 from Jonathan Druart <[email protected]> --- (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. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
