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

--- Comment #5 from Brendan Lawlor <[email protected]> ---
Created attachment 178804
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=178804&action=edit
Bug 38844: Fix location filter for News html customizations

This patch changes the #news_display_location filter to use the option's
text instead of it's value. The filter previously did not work when the
location field in additional_contents used snake case as in staff_only.

Test plan:
1. Go to Tools > News
2. Add a news item for each of the location types (Staff interface and OPAC,
Staff interface, OPAC, Slip)
3. Go back to the News landing page
4. Try using the "Display location" filter in the left column to filter the
table of news items - only the "All" and "Slip" choices work correctly.
5. Apply patch
6. Confirm the "Display location" filter works for All, Staff interface and
OPAC, Staff interface, OPAC, and Slip

-- 
You are receiving this mail because:
You are the assignee for the bug.
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/

Reply via email to