Active
Project:
Content Taxonomy
Version:
7.x-1.x-dev
Component:
Autocomplete - Freetagging
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 May 2012 at 22:47 UTC
Updated:
7 Dec 2016 at 15:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
frank ralf commentedI get the same error message when denying creating new terms, even when adding an existing term in an autocomplete field:
Notice: Undefined index: field_ingredient in content_taxonomy_autocomplete_validate_deny_new_terms() (line 106 of ...\sites\all\modules\contrib\content_taxonomy\content_taxonomy_autocomplete.module).EDIT:
The culprit seems to be the field-group we created to structure the form. The module doesn't seem to take this deeper nesting into account.
Comment #2
frank ralf commentedHere's a screenshot to illustrate the problem. The function is looking for field_ingredient only at the top level of form_state:
Comment #3
frank ralf commentedFunction drupal_array_get_nested_value() might be a solution, see drupal_validate_form() for an implementation example.
Comment #4
yesct commentedSteps I did. Note this is just testing deny new terms. Seems to work.
I'll try "Allow new terms and insert them into a separate vocabulary" next.
Comment #5
yesct commented[edit: add for clarity] This is testing the "Allow new terms and insert them into a separate vocabulary" setting. Seems to work.
Continuing from the previous steps.
That setting also seems to be working ok.
Comment #6
frank ralf commentedYes, the module does work when the autocomplete field is part of a normal, unmodified form.
However, if you use for example the Field group module to structure the form the autocomplete form field moves down the form field tree (see screenshot above) and the module doesn't seem to take this deeper nesting into account.
Comment #7
yesct commentedContinuing from the steps in #5, testing with field group module as mentioned in #6. This still seems to work.
Comment #8
damienmckennaNeed confirmation that the bug still exists, according to YesCT's debugging above it should work.
Comment #9
renew commentedAfter spending many hours debugging the problem, I can confirm that the bug still exists.
While using field_group module and adding a tags field inside a group, terms are not a saved to the 'New tags' vocabulary. Also manually created field groups (type = fieldset) with tag fields inside are NOT working with 'Allow new terms and insert them into a separate vocabulary'. All new terms are being added to the main tags vocabulary instead of the new tags vocabulary.
Comment #10
damienmckenna