When a workflow state is deleted, it is merely flagged as inactive in the database so as to not to create NULL joins with workflow_node_history.

The views_handler_operator_andor function for workflow states needs to filter out hidden workflow states

function workflow_handler_filter_sid() {
  $result = db_query("SELECT sid, state FROM {workflow_states} WHERE status = 1 ORDER BY weight, state");
  while ($data = db_fetch_object($result)) {
    $states[$data->sid] = check_plain(t($data->state));
  }

  return $states;
}

Comments

Bastlynn’s picture

Status: Active » Fixed

Hi,

With the release of Drupal 7, Drupal 5 is no longer receiving security updates, reviews, or development from many contributed modules. Since 5 is now considered a depreciated version, you really should seriously look into upgrading to Drupal 6 or 7. The newer versions of Drupal work better, have more support, and will be safer (literally! security patches!) for your website. We are currently working on a new release for Workflow to Drupal 7. In light of that, further support for Drupal 5 issues is infeasible at the moment. Please consider upgrading to Drupal 6 or 7 in the near future - you'll be glad you did.

- Bastlynn

Thank you for the catch, I'll check that more current versions account for the status.

Bastlynn’s picture

Status: Fixed » Closed (won't fix)