Now doesn't create new email when adding an attachment to a resumed
authorfallas <fallas@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 1 Nov 2001 10:15:22 +0000 (10:15 +0000)
committerfallas <fallas@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 1 Nov 2001 10:15:22 +0000 (10:15 +0000)
draft and saving it again.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1674 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index d3536ca..d984f9e 100644 (file)
          $editor_size, $attachments, $subject, $newmail,
          $use_javascript_addr_book, $send_to_bcc, $reply_id, $mailbox,
          $from_htmladdr_search, $location_of_buttons, $attachment_dir,
-         $username, $data_dir, $identity, $draft_id;
+         $username, $data_dir, $identity, $draft_id, $delete_draft;
 
       $subject = decodeHeader($subject);
       $reply_subj = decodeHeader($reply_subj);
       if (isset($draft_id)) {
          echo "<input type=\"hidden\" name=\"delete_draft\" value=\"$draft_id\">\n";
       }
+      if (isset($delete_draft)) {
+         echo "<input type=\"hidden\" name=\"delete_draft\" value=\"$delete_draft\">\n";
+      }
 
       echo "<TABLE WIDTH=\"100%\" ALIGN=center CELLSPACING=0 BORDER=0>\n";