소스 검색

Don't allow TO field to be blank; adjust auto-detection of FROM for reply-all actions as well

pdontthink 12 년 전
부모
커밋
6671b86bf8
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/compose.php

+ 4 - 2
src/compose.php

@@ -1000,10 +1000,12 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se
                             // if this is a reply-all, the original recipient
                             // is already in the CC field, so we can just blank
                             // the recipient (TO field) (as long as the CC field
-                            // isn't empty that is) and we're done
+                            // isn't empty that is)... but then move the CC into
+                            // the TO, so TO isn't empty
                             //
                             if ($action == 'reply_all' && !empty($send_to_cc)) {
-                                $send_to = '';
+                                $orig_to = $send_to_cc;
+                                $send_to_cc = '';
                                 break;
                             }