[Koha-bugs] [Bug 14272] Allow OPAC to show a single news item

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 22 22:39:50 CEST 2018


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

--- Comment #51 from Charles Farmer <charles.farmer at inlibro.com> ---
Went with the path of least resistance: search query now filters based on the
news_lang retrieved earlier in the script.

This should avoid retrieving news marked 'slip' or 'koha', and even those in
other languages than the one currently displayed.

Also removed a lingering variable, koha_news_count, that was not used anymore,
and not even passed to the template.

Test plan for this follow-up patch:

1) Make sure you have news from all different Location to display. At minimum,
you should have the 'koha', 'slip' and 'en' locations readily available.
1.1) If you don't, create them at <intranet
url>/cgi-bin/koha/tools/koha-news.pl
2) Apply patch "Bug 14272: Show single news item [alternative patch]"
3) Visit the OPAC
4) Click on the news' title
4.1) Not seeing any news? Go back to 1.1
5) Change the news_id parameter in the URL for another news that you've just
created
5.1) You should be able to display any news, even those which you shouldn't
have access to
6) Apply (follow-up) patch
7) Repeat 3) to 5), but this time, you should see an error message

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


More information about the Koha-bugs mailing list