When an issue is first created with the project_issue module, no matter what you select in the status drop-down during creation, the status is shown as blank when you view the issue. The database is storing an sid of 0. The default is set to 'active' (1).

I did a little testing, and $node->sid is set to 0 before it gets passed to project_issue_insert or project_issue_update. I don't know where it's getting changed or if Drupal is not processing the form field? Could another module interfere in this manner?

Comments

Josh Benner’s picture

I had the Workflow Fields module enabled. Once I disabled this module, Issues works normally. This is probably an issue with the Workflow Fields module, I'd assume.

dww’s picture

Status: Active » Closed (duplicate)

Sadly, this is yet another instance of the following bugs:
http://drupal.org/node/98278 (specific to project*)
http://drupal.org/node/148420 (more generally, core-wide)

The problem is that both project_issue.module and workflow.module think they "own" $node->sid. Evil and wrong. Both modules are at fault. See #98278 for my plans to fix this in project*.