hook_form_alter() doesn't set name of workflow anymore
deekayen - April 14, 2009 - 16:56
| Project: | Workflow |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Description
In CVS revision 1.75, the $name was no longer set when form altering the node edit form. That means there is an unset transition title and blank array key when working through workflow_node_form when workflow_node_form tries to use either $title or $name.
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/workflow/wo...
Attached patch re-adds the $name variable in the same way it is set in workflow_tab_form().
| Attachment | Size |
|---|---|
| workflow.module-diff_named6.patch | 629 bytes |

#1
This might be a little better so check_plain doesn't get called more than it has to.
#2
Updated patch to match the changes made in 1.83.2.1.
#3
#364608: Node form element name regression