Problem

Steps to reproduce:

  1. Configure a facet for a hierarchical taxonomy vocabulary
  2. Exclude one item with depth > 0

Expected result: the item is hidden.
Actual result: the item is displayed.

Proposed resolution

Make sure the filtering logic is applied also to children items.

CommentFileSizeAuthor
#2 facteapi_bonus-2790885-2.patch935 bytesplach
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

plach created an issue. See original summary.

plach’s picture

Title: Items not excluded on hierarchical facets » Children items not excluded on hierarchical facets
Status: Active » Needs review
FileSize
935 bytes

This seems to work here.

Bohus Ulrych’s picture

Thank you for sharing. This piece of code (slightly adjusted) works for 7.x-1.2 as well.

  • joseph.olstad committed 5e4a245 on 7.x-1.x authored by plach
    Issue #2790885 by plach, Bohus Ulrych: Children items not excluded on...
joseph.olstad’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.