Pārlūkot izejas kodu

* When you browse for an attachment, then hit the Address Book form button,
you used to lose your new attachment. Worry no longer.

Tyler Akins 24 gadi atpakaļ
vecāks
revīzija
d0d9db3223
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. 7 0
      src/compose.php

+ 7 - 0
src/compose.php

@@ -470,6 +470,13 @@
       
       showInputForm();
    } else if (isset($html_addr_search)) {
+      if (isset($HTTP_POST_FILES['attachfile']) &&
+          $HTTP_POST_FILES['attachfile']['tmp_name'] &&
+          $HTTP_POST_FILES['attachfile']['tmp_name'] != 'none')
+      {
+          if (saveAttachedFiles())
+                plain_error_message(_("Could not move/copy file. File not attached"), $color);
+      }
       // I am using an include so as to elminiate an extra unnecessary click.  If you
       // can think of a better way, please implement it.
       include ("./addrbook_search_html.php");