瀏覽代碼

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 年之前
父節點
當前提交
6f762a62a0
共有 1 個文件被更改,包括 2 次插入0 次删除
  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) {