Browse Source

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 years ago
parent
commit
6f762a62a0
1 changed files with 2 additions and 0 deletions
  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('send_to_search',        $send_to_search,        SQ_POST);
 sqgetGlobalVar('do_delete',             $do_delete,             SQ_POST);
 sqgetGlobalVar('do_delete',             $do_delete,             SQ_POST);
 sqgetGlobalVar('delete',                $delete,                SQ_POST);
 sqgetGlobalVar('delete',                $delete,                SQ_POST);
+sqgetGlobalVar('restoremessages',       $restoremessages,       SQ_POST);
 if ( sqgetGlobalVar('return', $temp, SQ_POST) ) {
 if ( sqgetGlobalVar('return', $temp, SQ_POST) ) {
   $html_addr_search_done = 'Use Addresses';
   $html_addr_search_done = 'Use Addresses';
 }
 }
@@ -1218,6 +1219,7 @@ function saveAttachedFiles($session) {
     $name = $_FILES['attachfile']['name'];
     $name = $_FILES['attachfile']['name'];
     $message->initAttachment($type, $name, $full_localfilename);
     $message->initAttachment($type, $name, $full_localfilename);
     $compose_messages[$session] = $message;
     $compose_messages[$session] = $message;
+    sqsession_register($compose_messages , 'compose_messages');
 }
 }
 
 
 function ClearAttachments($composeMessage) {
 function ClearAttachments($composeMessage) {