Active
Project:
Taxonomy Access Control
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2011 at 15:30 UTC
Updated:
5 Sep 2011 at 06:24 UTC
Notices are triggered when adding or editing taxonomy field instances to the user account settings.
Notice: Undefined index: #entity_type in taxonomy_access_form_alter() (line 470 of /Users/xjm/git/drupal/taxonomy_access/taxonomy_access.module).
Notice: Undefined index: entity keys in entity_extract_ids() (line 7375 of /Applications/MAMP/htdocs/d7/includes/common.inc).
Notice: Undefined index: field_name in field_language() (line 275 of /Applications/MAMP/htdocs/d7/modules/field/field.multilingual.inc).
The quick fix for this is to return if the form does not have an entity type defined, as in the attached patch. However, the issue raises an interesting question: what if a role has administer user permissions, but not administer taxonomy permissions? They could conceivably not have create permissions for some or all terms on a given autocomplete field. The same might actually go for content type configuration forms.
| Comment | File | Size | Author |
|---|---|---|---|
| non-entity-form.patch | 691 bytes | xjm |
Comments
Comment #1
xjmComment #2
xjmCommitted the workaround in http://drupal.org/commitlog/commit/364/a355d809a15b6a1f71d978bfecdcee438.... Leaving open to address the wider question.
Comment #3
xjmComment #4
xjmBetter status.
Comment #5
xjmComment #5.0
xjmUpdated issue summary.