ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Ignore:
Timestamp:
Apr 22, 2009, 7:40:34 PM (13 years ago)
Author:
urabe
Message:

#3784 修正内容を一旦整理のため戻します。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/modules/pc/page/f_message_send.php

    r11406 r11410  
    1010    {
    1111        $u = $GLOBALS['AUTH']->uid();
     12        $form_val = array();
    1213
    1314        // --- リクエスト変数
     
    2627        }
    2728
    28         $c_message = db_message_c_message4c_message_id($form_val['target_c_message_id']);
    2929        if ($form_val['target_c_message_id']) {
     30            $c_message = db_message_c_message4c_message_id($form_val['target_c_message_id']);
    3031            if ($c_message['c_member_id_from'] != $u) {
    3132                if ($c_message['c_member_id_to'] != $u || !$c_message['is_send']) {
     
    4445
    4546        //メッセージIDから情報を取り出す
    46         $form_val['target_c_message_id'] = $c_message['c_message_id'];
    47         if ($box == 'savebox' && $form_val['target_c_message_id']) {
    48             if (!$requests['msg1'] && !$requests['msg2']) {
    49                 $form_val['subject'] = $c_message['subject'];
    50                 $form_val['body'] = $c_message['body'];
     47        if ($box == "savebox" && $form_val['target_c_message_id']) {
     48            $tmplist = db_message_c_message4c_message_id($form_val['target_c_message_id']);
     49            if ($requests['msg1'] || $requests['msg2']) {
     50                $form_val['subject'] = $form_val['subject'];
     51                $form_val['body'] = $form_val['body'];
     52            } else {
     53                $form_val['subject'] = $tmplist['subject'];
     54                $form_val['body'] = $tmplist['body'];
    5155            }
    52             if ($c_message['c_member_id_to']) {
    53                 $target_c_member_id = $c_message['c_member_id_to'];
     56            $form_val['target_c_message_id'] = $tmplist['c_message_id'];
     57            if ($tmplist['c_member_id_to']) {
     58                $target_c_member_id = $tmplist['c_member_id_to'];
    5459            }
    5560        } elseif (!$syusei && $form_val['target_c_message_id']) {
    56             $form_val['body'] = message_body2inyou($c_message['body']);
    57             $form_val['subject'] = "Re:".$c_message['subject'];
    58             if ($c_message['c_member_id_from']) {
    59                 $target_c_member_id = $c_message['c_member_id_from'];
     61            $tmplist = db_message_c_message4c_message_id($form_val['target_c_message_id']);
     62            $form_val['body'] = message_body2inyou($tmplist['body']);
     63            $form_val['subject'] = "Re:".$tmplist['subject'];
     64            $form_val['target_c_message_id'] = $tmplist['c_message_id'];
     65            if ($tmplist['c_member_id_from']) {
     66                $target_c_member_id = $tmplist['c_member_id_from'];
    6067            }
    6168        }
     
    6673        }
    6774
    68         $this->set('inc_navi', fetch_inc_navi('f', $target_c_member_id));
     75        $this->set('inc_navi', fetch_inc_navi("f", $target_c_member_id));
    6976
    7077        //ターゲット情報
    71         $this->set('target_member', $target_member);
     78        $this->set("target_member", $target_member);
    7279
    7380        //ターゲットのid
    74         $this->set('target_c_member_id', $target_c_member_id);
     81        $this->set("target_c_member_id", $target_c_member_id);
    7582        //ターゲットのid
    76         $this->set('target_c_message_id', $form_val['target_c_message_id']);
     83        $this->set("target_c_message_id", $form_val['target_c_message_id']);
    7784
    78         $this->set('form_val', $form_val);
    79         $this->set('box', $box);
     85        $this->set("form_val", $form_val);
     86        $this->set("box", $box);
    8087
    8188        // 許可されている拡張子のリスト
Note: See TracChangeset for help on using the changeset viewer.