Index: workflow.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/workflow/workflow.module,v retrieving revision 1.83.2.1 diff -u -r1.83.2.1 workflow.module --- workflow.module 5 Jun 2009 22:05:30 -0000 1.83.2.1 +++ workflow.module 7 Jun 2009 05:42:12 -0000 @@ -436,6 +436,7 @@ } $workflow = workflow_load($wid); $form['#wf'] = $workflow; + $name = check_plain($workflow->name); // If the current node state is not one of the choices, autoselect first choice. // We know all states in $choices are states that user has permission to @@ -448,7 +449,7 @@ if (sizeof($choices) > 1) { $form['workflow'] = array( '#type' => 'fieldset', - '#title' => check_plain($workflow->name), + '#title' => $name, '#collapsible' => TRUE, '#collapsed' => FALSE, '#weight' => 10, @@ -457,7 +458,6 @@ $timestamp = NULL; $comment = ''; - $name = ''; // See if scheduling information is present. if (isset($node->_workflow_scheduled_timestamp) && isset($node->_workflow_scheduled_sid)) {