Active
Project:
Taxonomy Access Control
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Sep 2008 at 09:24 UTC
Updated:
19 Oct 2011 at 14:50 UTC
Hi,
for a type of content, the numbers of options in a selectBox are determined by Taxonomy Acess Control.
for a particular group the selectBox had only one option.
Is possibile to automatically preselect that value?
thanks
Comments
Comment #1
cpugeniusmv commentedThis is an issue that extends beyond the scope of TAC (See #180109: Only taxonomy term selected by default when there is only one)
I'm inclined to wait for that issue to be resolved before deciding what to do within TAC.
For my own sites where this issue is a problem, I've create a simple module with the following code:
It seems to work.
Comment #2
cpugeniusmv commentedI should explain that this code will set the first (or only, if there is just one) item as the default selection (where no default selection exists) for only required fields.
Comment #3
xjmDoesn't look like the patch made it into core for 6.x, so it's probably worth patching in TAC.
Comment #4
xjmMarked #208798: upgrade to drupal 5.4 broke something as duplicate of this issue.
Comment #5
xjmTagging.