--- workflow.module	2008-07-16 12:10:19.000000000 +0200
+++ workflow_patched.module	2008-07-16 12:12:46.000000000 +0200
@@ -1688,10 +1688,8 @@ function workflow_allowable_transitions(
     . "ORDER BY state_weight", $field, $field, $field_where, $sid, $sid);
 
   while ($t = db_fetch_object($result)) {
-    if ($roles == 'ALL' || ($t->tid == $t->state_id) || workflow_transition_allowed($t->tid, $roles)) {
-      //$state_id = str_pad($t->state_id, 5, '0', STR_PAD_LEFT);
-      $state_id = $t->state_id;
-      $transitions[$state_id] = $t->state_name;
+    if ($roles == 'ALL' || workflow_transition_allowed($t->tid, $roles)) {
+      $transitions[$t->state_id] = $t->state_name;
     }
   }
     
