I have an issue witha dependent facet. On my site I have links to a facetted page. Those links are activating a facet that is only shown when another facet is active on a certain value. While the facet itself works (the content is being filtered correctly), the facet does not show. This also means that the facet cannot be deactivated.
I've written a patch that, when a facet is activated, it does not check the dependent facets anymore, and just outputs the results. I will add the patch in a bit.
Comment | File | Size | Author |
---|
Issue fork facets-2937619
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
fabianderijkComment #4
fabianderijkComment #5
borisson_I think the better solution is the one in https://www.drupal.org/project/facets/issues/2908937, that should also make this problem go away.
Comment #6
borisson_Closing as duplicate in favor of #2908937: Dependend Facets don't reset after Conditions are not met anymore.
Comment #7
dealancer CreditAttribution: dealancer commented#2908937 is not likely going to work for facets served over REST.
Also this ticket is not a duplicate of #2908937 as it provides an alternative solution.
I have rerolled patch #4 for those who may be interested in using it.
Comment #9
Anybody@dealancer, are you using this patch actively? #7 reports a failing test, could you check that, add some tests to ensure this works as expected (and fails before)?
Updating version.
Confirming #7 and agree this still makes a lot of sense in the described context.
Comment #10
AnybodyRerolled the patch against 2.0.x as MR, still needs test modification for expected values, additional tests and testing!
Comment #12
recrit CreditAttribution: recrit at Phase2 commentedhiding old patch so only the MR shows