Needs work
Project:
Primary Term
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2010 at 11:20 UTC
Updated:
6 Apr 2011 at 16:57 UTC
The attached patch removes a bunch of PHP notices when editing content type settings and nodes.
It changes the logic in the hook_form_alter() implementation: In the node_type_form case $type is never set and $vocabs will contain all available vocabularies and not just the vocabularies related to the current content type, i.e. all vocabularies on the site will be displayed on the content type edit form. Also, it cleans up *_node_form and removes unnecessary objects in select list options.
| Comment | File | Size | Author |
|---|---|---|---|
| primary_term.form_alter.patch | 9.03 KB | wulff |
Comments
Comment #1
brianV commentedCommitted, thanks!
http://drupal.org/cvs?commit=448948
Comment #3
rmjiv commentedThis is super late, but I disagree with some of the changes of the patch. This is *not* simply a transparent code clean up patch, it makes behavioral changes. Here are some that I've identified this far:
I'm not sure if the preferred method of addressing these changes is creating new issues or a comprehensive patch on this issue. So I'm going to create issues for things that I consider bugs (#1117574: Empty Primary Term form field) and then eventually attach a complete patch reverting undesired changes on this ticket.