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

--- Comment #51 from Charles Farmer <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://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/

Reply via email to