Reviewed & tested by the community
Project:
Node Auto Term [NAT]
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2011 at 22:16 UTC
Updated:
20 May 2017 at 13:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Zen commentedDupe of #1190038: Warning and notice thrown when editing a node associated to a vocab with NAT.
Comment #2
jaypark commentedThis is not a duplicate of http://drupal.org/node/1190038, however it may be a symptom of that issue.
This notice and warning comes from nat.module::line194 (March 4 dev version):
$form[$form_field][$language]['#options'] in fact doesn't exist if the form widget doesn't provide the #options array. This is true for the term_reference_tree module, which provides a very nice term reference control, as #type => 'checkbox_tree'. as you can see from drupal 7 form api, there is no #option array available for #type => 'checkbox_tree' (in fact there's no reference at all to that type at http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.ht...)
the issue is that NAT is unaware of what kind of widget is providing the terms. this awareness should probably happen at admin/structure/nat/fields.
Comment #3
fabianderijkI've made a patch for this. All still works, it just doesn't throw the error.
Comment #4
fabianderijkComment #5
fabianderijkNow with a correct patch
Comment #6
Anonymous (not verified) commentedchanged patch #5 a little: this patch works in the module directory
Comment #7
brooke_heaton commentedI was able to recreate this error on a content type with a term reference field using the term_reference_tree widget.
Comment #8
brooke_heaton commentedPatch in #6 works for me. RTBC.