Closed (fixed)
Project:
Simple hierarchical select
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2013 at 23:32 UTC
Updated:
14 May 2013 at 11:00 UTC
When selecting as views filter and nothing is selected the top selection should be named -Any- instead of -None- (the opposite as in node creation page)
p.s. You got my praise one more time for this module, awesome work
Comments
Comment #1
trevorkjorlien commentedI know this isn't the best solution, as it's better to do it in an override, but what I've done to achieve this is edit the "shs.js" file, found in the 'shs/js' folder.
In version 7.x-1.6, it's on line 139. Change '- None -' to '- All -'. Flush the cache, and it will be changed everywhere SHS is used.
Again, better to do this in an override, as when you update the module, this change will be reverted.
Comment #2
Mike Dodd commentedthis module is fantastic, but I also found this problem it makes much more sense as - All - and so should be changed. I know you have wrapped it inside Drupal.t but string overides has currently got some problems doing javascirpt translations and so I have to to mod this file :(
When noting is selected it will return all results and so should really be update to "- All -"
options[options.length] = new Option(Drupal.t('- All -'), 0);
cheers
Comment #3
stborchertCommitted a tiny change to Simple hierarchical select so it uses the same setting as Views (configurable on admin/structure/views/settings).