Jelajahi Sumber

Fixed attachments issue... Seemed that the session wasn't getting the new
value of the message array when composing. This'd make the attachments
apparently vanish. Also added back in the $restoremessages array, was that
which helped me solve the attachments issue.

jangliss 22 tahun lalu
induk
melakukan
6f762a62a0
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      src/compose.php

+ 2 - 0
src/compose.php

@@ -79,6 +79,7 @@ sqgetGlobalVar('addr_search_done',      $html_addr_search_done, SQ_POST);
 sqgetGlobalVar('send_to_search',        $send_to_search,        SQ_POST);
 sqgetGlobalVar('do_delete',             $do_delete,             SQ_POST);
 sqgetGlobalVar('delete',                $delete,                SQ_POST);
+sqgetGlobalVar('restoremessages',       $restoremessages,       SQ_POST);
 if ( sqgetGlobalVar('return', $temp, SQ_POST) ) {
   $html_addr_search_done = 'Use Addresses';
 }
@@ -1218,6 +1219,7 @@ function saveAttachedFiles($session) {
     $name = $_FILES['attachfile']['name'];
     $message->initAttachment($type, $name, $full_localfilename);
     $compose_messages[$session] = $message;
+    sqsession_register($compose_messages , 'compose_messages');
 }
 
 function ClearAttachments($composeMessage) {