Index: includes/issue_node_form.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/includes/issue_node_form.inc,v retrieving revision 1.2 diff -u -p -r1.2 issue_node_form.inc --- includes/issue_node_form.inc 30 Jul 2009 08:07:07 -0000 1.2 +++ includes/issue_node_form.inc 6 Aug 2009 21:03:39 -0000 @@ -298,7 +298,7 @@ function _project_issue_form($node, $for } else { $form['issue_info']['sid'] = array( - '#type' => 'hidden', + '#type' => 'value', '#value' => $default_state, ); $form['issue_info']['status'] = array( @@ -308,6 +308,42 @@ function _project_issue_form($node, $for ); } } + else { + // If we're not allowing issue metadata changes, add all of these values + // into the form so they show up in the $node->project_issue array during + // validation and submit, so we're consistent with where they live. + $form['project_issue'] = array('#tree' => TRUE); + $form['project_issue']['pid'] = array( + '#type' => 'value', + '#value' => $node->project_issue['pid'], + ); + if (isset($node->project_issue['rid'])) { + $form['project_issue']['rid'] = array( + '#type' => 'value', + '#value' => $node->project_issue['rid'], + ); + } + $form['project_issue']['component'] = array( + '#type' => 'value', + '#value' => $node->project_issue['component'], + ); + $form['project_issue']['category'] = array( + '#type' => 'value', + '#value' => $node->project_issue['category'], + ); + $form['project_issue']['priority'] = array( + '#type' => 'value', + '#value' => $node->project_issue['priority'], + ); + $form['project_issue']['assigned'] = array( + '#type' => 'value', + '#value' => $node->project_issue['assigned'], + ); + $form['project_issue']['sid'] = array( + '#type' => 'value', + '#value' => $node->project_issue['sid'], + ); + } $form['issue_details'] = array( '#type' => 'fieldset',