CRM-13933 - Fix chainSelect to work in other contexts
Merge pull request #2183 from colemanw/master

CRM-13933 - Fix chainSelect to work in other contexts