--- webform.module	2008-03-21 19:46:54.000000000 -0400
+++ webform.module	2008-03-30 09:36:01.000000000 -0400
@@ -1325,6 +1325,7 @@ function webform_client_form_submit($for
     // Sid was found thus update the existing sid in the datatbase.
     $sid = webform_submission_update($node, $form_values['details']['sid'], $form_values['submitted']);
   }
+  $form_values['saved_sid'] = $sid;
 
   // Check if this form is sending an email.
   if ((!empty($node->webform['email']) || !empty($node->webform['additional_emails'])) && !$form_values['details']['sid']) {
