]> git.koha-community.org Git - koha.git/commit
Bug 11796: fix display of search result facets if facet happens to have exactly six...
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 19 Feb 2014 20:26:24 +0000 (15:26 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 21 May 2014 08:14:52 +0000 (10:14 +0200)
commitdc842baa70e5dcf232f15cff232409fdcd833014
tree0187f50ae920357c6fee9b9fca3577f9b0bdec12
parent1e6c33c41b1b6c94bb8bc84626ed64da42abe6d5
Bug 11796: fix display of search result facets if facet happens to have exactly six entries

If a search gives results with 6 facets, one of those facets won't be
displayed. This is due to a bug in the code that only considers great
than 6 facets in one area, and less than 6 in another.

Test Plan:
1) Perform a search that should give results for 6 different libraries
2) Note you only see 5 libraries in the facets with no option to expand
3) Apply this patch
4) Repeat step 1
5) Note you now have the option to expand the facets list

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
This patch should provide a regression test but I really don't know how
to write it.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit e7286e05137276f0a916f06d60a13c22c93294b2)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Search.pm