[Koha-bugs] [Bug 24745] New: OPAC news block plugin should evaluate as false if there are no items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 27 18:12:30 CET 2020


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: oleonard at myacpl.org
          Reporter: oleonard at myacpl.org
        QA Contact: testopia at bugs.koha-community.org
            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.


More information about the Koha-bugs mailing list