Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
We are rendering facets from different sources (where some facets are duplicated). Currently it is not possible to have different results for this duplicate facets since processFacets()
does not take the source ID into account.
Proposed resolution
Make $this->processedFacets
aware of the facets source ID.
Remaining tasks
* Create patch
Comment | File | Size | Author |
---|---|---|---|
#2 | facets-processFacets_sourceID-2960088-2.patch | 994 bytes | stBorchert |
Comments
Comment #2
stBorchertComment #3
borisson_This shouldn't be a problem, the facet ID is always unique - or at least it should be.
Comment #4
SteffenRI also had this problem in a project and the patch resolved the issue for me.
Looks fine for me and we should take the status to RTBC if anyone is fine with it?
Comment #5
borisson_As a happy side-effect, this is making things a little bit faster. On my local machine, on a view with
With patch:
Without patch:
Comment #7
borisson_Thanks!