When I18n is enabled, the content editor gets the following PHP notice for a non-traslated taxonomy field (a template ID) when I open the node/add/ form:
Notice: Undefined index: #language in term_permissions_form_alter() (line 133 of /var/www/html/objet/sites/all/modules/term_permissions/term_permissions.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | index_language-1629964-2.patch | 601 bytes | misc |
| #1 | term_permissions.module.patch | 904 bytes | druvision |
Comments
Comment #1
druvision commentedI've added two lines of code which prevent this error on line 132 of term_pemissions.module:
Attached is a basic patch
Please fix the module!
Comment #2
misc commentedCould not apply your patch, so I rewrote it.
Comment #3
misc commentedSeem to work ok.
Comment #4
misc commentedCommitted to latest dev.
Comment #6
R.Sungatov commentedindex_language-1629964-2.patch
strange, but it not work for me
i change
if (!in_array('#language', $form[$field_name])) { continue; }
on
if (!isset($form[$field_name]['#language'])) continue;