[Koha-bugs] [Bug 12136] New: Problem in opac-topissues.pl if AdvancedSearchTypes has multiple values (separated by pipes)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 24 21:03:34 CEST 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12136

            Bug ID: 12136
           Summary: Problem in opac-topissues.pl if AdvancedSearchTypes
                    has multiple values (separated by pipes)
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: veron at veron.ch
        QA Contact: testopia at bugs.koha-community.org

The "Most popular" feature in Opac is broken if AdvancedSearchTypes has
multiple values (separated by pipes).

To reproduce:
1) Set OpacTopissue preferende to "Allow"
2) Set AdvancedSearchTypes to an empty value
-> "Most popular" shows "Limit to" with "All item types" (OK)
3) Set AdvancedSearchTypes to 'itemtypes'
-> "Most popular" shows "Limit to" with "All item types" (OK)
4) Set AdvancedSearchTypes to 'ccode'
-> "Most popular" shows "Limit to" with "All collections" (OK)
5) Set AdvancedSearchTypes to 'ccode|itemtypes' or 'itemtypes|ccode'
-> "Most popular" shows "Limit to" with "All item types" with EMPTY dropdown
list (BUG)

This is due to wrong comparisions in opac-topissues.pl combined with the fact
that the program logic can only display one drop down list.

Patch follows.

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


More information about the Koha-bugs mailing list