Index: workflow.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/workflow/workflow.module,v
retrieving revision 1.83
diff -u -p -r1.83 workflow.module
--- workflow.module	1 Jan 2009 21:09:16 -0000	1.83
+++ workflow.module	30 Jan 2009 19:24:20 -0000
@@ -238,6 +238,7 @@ function workflow_nodeapi(&$node, $op, $
 
     case 'delete':
       db_query("DELETE FROM {workflow_node} WHERE nid = %d", $node->nid);
+      $node->workflow_stamp = time();
       _workflow_write_history($node, WORKFLOW_DELETION, t('Node deleted'));
       // Delete any scheduled transitions for this node.
       db_query("DELETE FROM {workflow_scheduled_transition} WHERE nid = %d", $node->nid);
@@ -394,7 +395,7 @@ function workflow_node_form(&$form, $for
       '#description' => t('A comment to put in the workflow log.'),
       '#default_value' => $comment,
       '#rows' => 2,
-    );      
+    );
   }
 }
 
@@ -481,7 +482,7 @@ function workflow_form_alter(&$form, $fo
  *   A comment for the node's workflow history.
  * @param $force
  *   If set to TRUE, workflow permissions will be ignored.
- * 
+ *
  * @return int
  *   ID of new state.
  */
@@ -984,7 +985,7 @@ function workflow_get_all() {
 function workflow_create($name) {
   $workflow = array(
     'name' => $name,
-    'options' => serialize(array('comment_log_node' => 1, 'comment_log_tab' => 1)), 
+    'options' => serialize(array('comment_log_node' => 1, 'comment_log_tab' => 1)),
   );
   drupal_write_record('workflows', $workflow);
   workflow_state_save(array(
@@ -1335,7 +1336,7 @@ function _workflow_write_history($node, 
 
 /**
  * Get a list of roles.
- * 
+ *
  * @return
  *   Array of role names keyed by role ID, including the 'author' role.
  */
@@ -1357,7 +1358,7 @@ function workflow_get_roles() {
 function workflow_cron() {
   $clear_cache = FALSE;
 
-  // If the time now is greater than the time to execute a 
+  // If the time now is greater than the time to execute a
   // transition, do it.
   $nodes = db_query('SELECT * FROM {workflow_scheduled_transition} s WHERE s.scheduled > 0 AND s.scheduled < %d', time());
 
@@ -1393,7 +1394,7 @@ function workflow_cron() {
  */
 function workflow_action_info_alter(&$info) {
   foreach (array_keys($info) as $key) {
-    // Modify each action's hooks declaration, changing it to say 
+    // Modify each action's hooks declaration, changing it to say
     // that the action supports any hook.
     $info[$key]['hooks'] = 'any';
   }
@@ -1434,7 +1435,7 @@ function workflow_hook_info() {
 
 /**
  * Implementation of hook_menu_alter().
- * 
+ *
  * Work around loss of menu local task inheritance in Drupal 6.2.
  */
 function workflow_menu_alter(&$callbacks) {
@@ -1508,4 +1509,4 @@ function workflow_token_list($type = 'al
   }
 
   return $tokens;
-}
\ No newline at end of file
+}
