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().

AttachmentSize
workflow.module-diff_named6.patch629 bytes

#1

deekayen - April 14, 2009 - 17:05

This might be a little better so check_plain doesn't get called more than it has to.

AttachmentSize
workflow.module-diff_named6-2.patch 918 bytes

#2

deekayen - June 7, 2009 - 05:48

Updated patch to match the changes made in 1.83.2.1.

AttachmentSize
workflow_missing_form_name.patch 1.13 KB

#3

deekayen - June 7, 2009 - 06:15
Status:needs review» duplicate

#364608: Node form element name regression

 
 

Drupal is a registered trademark of Dries Buytaert.