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@myacpl.org Reporter: veron@veron.ch QA Contact: testopia@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.