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.
Allow the list of SearchIDs to be alphabetically sorted.
Comment | File | Size | Author |
---|---|---|---|
#8 | 2570879-facetapi-integration-sort-applicable-searchids-8.patch | 1.96 KB | thePanz |
|
Comments
Comment #2
thePanz CreditAttribution: thePanz at Liip for FREITAG lab. AG commentedComment #3
thePanz CreditAttribution: thePanz at Liip for FREITAG lab. AG commentedReworked patch: ensure that the SearchID is always captured even if it's already in the facet configuration.
Reason: in some (weird) cases the variable 'search_api_facets_search_ids' lost the tracked SearchID, but since the SearchID was present in the faced configuration, it will not be pushed into 'search_api_facets_search_ids' anymore.
Comment #4
thePanz CreditAttribution: thePanz at Liip for FREITAG lab. AG commentedComment #5
drunken monkeyThanks for creating this issue, seems like a good idea! The patch also looks good, just one thing:
This needs proper documentation.
But apart from that, the patch looks great, thanks!
Comment #6
drunken monkeyComment #7
thePanz CreditAttribution: thePanz at Liip for FREITAG lab. AG commentedDocumentation added, mostly taken from previous code.
Comment #8
thePanz CreditAttribution: thePanz at Liip for FREITAG lab. AG commentedRe-based patch against current 7.x-1.x branch
Comment #10
drunken monkeyThanks for the revision!
It's still not perfect, the first sentence of a doc comment should always be on a single line (and, thus, shorter than 80 characters), and you forgot the type hint for the
$search_id
parameter, but I just fixed that and committed the patch.Thanks again for your work!