]> git.koha-community.org Git - koha.git/commit
Bug 37628: (follow-up) Remove get_opac_news_by_id
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 24 Oct 2023 13:12:44 +0000 (15:12 +0200)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 16 Aug 2024 15:33:51 +0000 (17:33 +0200)
commit8830cd7efff19f8e0d1eb0b2e1807db855caf675
treede70c3731c2f22e52e32b06c94545dfe13e3b746
parent003479cc3044a881d3e96fb4035ad9d80e1bc711
Bug 37628: (follow-up) Remove get_opac_news_by_id

Keep the same behaviour, but wondering why we don't return 'content'
when there is no match.

ie.
+    is( $additional_contents, undef );
should certainly be
+    is( $additional_contents->{content}->count, 0 );

WNC amended patch - tidied

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/AdditionalContents.pm
Koha/Template/Plugin/AdditionalContents.pm
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt
t/db_dependent/Template/Plugin/AdditionalContents.t