Until using drupal 5.3, all worked fine. Upgrading to drupal 5.4, now something doesn't work as before.
I use TAC to give anonymous user a permission of "create" documents with a single category only. Before drupal 5.4, the only permitted category is automatically chosen. Now, with drupal 5.4 (taxonomy.module) an unuseful, new "Please choose" label is choosen. This is awful (if it's the only one, should be automatically chosen) and leads users to an unuseful, additional "click".
I think the new "feature" is in the taxonomy_form function of the taxonomy.module (this is from drupal 5.4 - drupal 5.5 and 5.6 again modified this...):
-----------
function taxonomy_form($vid, $value = 0, $help = NULL, $name = 'taxonomy') {
$vocabulary = taxonomy_get_vocabulary($vid);
$help = ($help) ? $help : $vocabulary->help;
$blank = 0;
if (!$vocabulary->multiple) {
$blank = ($vocabulary->required) ? t('- Please choose -') : t('- None selected -');
}
---------
Is the something we could do to avoid this in taxonomy access? maybe rewriting the "taxonomy_form" function?
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | problema_tac.jpg | 67.88 KB | francoud |
Comments
Comment #1
francoud commentedI forgot to attach an image to show better the problem:
Comment #2
francoud commentedI wonder if this module is stil under development.. I find lot of open "issues" still with no answer...
Comment #3
xjmMarking as duplicate of #311694: Automatically select term when only one term is available.