Closed (fixed)
Project:
Simple hierarchical select
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 May 2013 at 23:14 UTC
Updated:
3 Jun 2013 at 22:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
stborchertWow this works like a charm.
Thanks for the patch, I've committed it right now.
Here is a sample implementation of hook_shs_add_term_access():
Comment #3
Grayside commentedSomething in the logic of how this is called is broken. I have a term (with tid 24) that I am trying to use to represent an "Other" option to which you can add more elements.
Here are the field settings I am using. I have tried this with and without allowing the creation of new levels.

When a view the JS settings, I see that the create new option appears to be set to false, despite
returning TRUE when it is given the correct $tid. My working theory is that somewhere there is a caching problem or that somewhere the tid is not being passed along.
Having beaten my head against a wall for a while on this, I am documenting this here to return later.
Comment #4
stborchertThere was a small error that generally disables creating new terms if other modules tries to control access. I've committed a fix so it works now as expected.
Comment #5
Grayside commentedI just downloaded latest -dev and it worked.