https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24745
Bug ID: 24745
Summary: OPAC news block plugin should evaluate as false if
there are no items
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: ASSIGNED
Severity: normal
Priority: P5 - low
Component: OPAC
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Blocks: 23796
In the OPAC we do this to get a news block for display:
[% SET OpacHeader = KohaNews.get( location => "opacheader", lang => lang,
library => branchcode, blocktitle => 0 ) %]
From this we're supposed to be able to check for the existence of [% OpacHeader
%], but the way the data is returned from KohaNews.pm it evaluates as true.
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23796
[Bug 23796] Convert OpacCustomSearch system preference to news block
--
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/