Closed (fixed)
Project:
Simple hierarchical select
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Jan 2019 at 17:26 UTC
Updated:
30 Oct 2025 at 00:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nwom commentedComment #3
akram zairig commentedHello,
I've just tried using this patch, it adds SHS widget to search api views but i've got duplicate filters (default Dropdown + SHS).
Thank you,
Comment #4
nwom commentedNeeds work based on the above comment.
Comment #5
chikeThis patch worked for me and there are no duplicate filters as said in #3.
Thank you.
Comment #6
chikeOne issue: trying to set the filter as required throws errors, yesterday it was giving error "An illegal choice has been detected." (if I remember the exact words) and now it says "No valid values found on filter: Content datasource: Business type." So not able to set the filter as required.
Comment #7
chikeAnother issue: the first level shows the default option, (in my case) "-Any-" but when you make a selection and the second level loads, the default option is not displayed and to see the options you have to click and then you will see "-Any-" and the other options. Just a UX detail otherwise the filters work.I just checked a colleague's screen and this issue is not there, but with different browsers I have the issue.
Comment #8
stborchertMoving to 2.0.x ...
Comment #12
nsalves commentedIt seems the merge request was not yet approved so here's the patch rerolled for the rc3 release
Comment #13
chikeUsing Drupal 10, patch #12 gives me duplicate filters when viewed as admin, one with SHS and the other a regular dropdown. Viewing as anonymous one only sees the regular dropdown and doesn't see the one with SHS.
Comment #14
chikeThe issue I reported at #13 is not related to patch #12. I removed the patch and added a filter on a regular view (not using Search API) and the issue persisted. I opened a new issue about it.
Comment #15
tyler-durden commentedThe patch in #12 looks like it will not work with the latest RC4 release, is that correct? I need this to work with D10, and I can't get the patch to apply to RC4.
Comment #16
tyler-durden commentedI was able to get patch #12 to apply to 10.0.7 with no issues, but when adding a taxonomy filter to a Search Index view, it does not go the the next settings screen and I have this error in my records.
Drupal\Component\Plugin\Exception\PluginException: Plugin (search_api_term) instance class "SearchApiShsTaxonomyIndexTid" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 97 of web/core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).
I cleared cache but that does not help, any other suggestions? Thanks!
Comment #17
wombatbuddy commentedThe patch #12 did the job on Drupal 10.2.6.
Comment #18
heikkiy commentedTested this patch also and it seems to work fine. One small issue I did notice is that in the normal dropdown widgets the All / Any option is first option in the select list. But in the SHS widget the Any option is last in the select list.
So basically the select list code looks like this:
If I have several exposed filters in the same view, it's a bit weird UX that in some of them the All option is first and in some it's the last.
Comment #19
anish.a commentedAny pointers to fix the issue where -Any- appears last?
Comment #20
anish.a commentedThe issue raised by heikkiy is already addressed by issue #3269746. This works fine and can be merged.
Comment #21
heikkiy commentedThank you @anisha. I failed to find that issue when searching for the issue list and it does indeed fix the issue.
Comment #22
lus commentedWhat about the "ShsTaxonomyIndexTidDepth" would it need some more work to be able to use it with a Search API ?
Comment #25
joseph.olstadComment #27
joseph.olstadhttps://www.drupal.org/project/shs/releases/3.0.0-beta4
https://www.drupal.org/project/shs/releases/2.0.4