Changeset 11369
- Timestamp:
- Apr 20, 2009, 5:13:55 PM (12 years ago)
- Location:
- OpenPNE/branches/stable-2.12.x/webapp/modules
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/branches/stable-2.12.x/webapp/modules/ktai/page/h_diary_edit.php
r11346 r11369 13 13 // --- リクエスト変数 14 14 $target_c_diary_id = $requests['target_c_diary_id']; 15 $subject = $requests['subject']; 16 $body = $requests['body']; 15 17 $public_flag = $requests['public_flag']; 16 18 // ---------- … … 23 25 handle_kengen_error(); 24 26 } 25 if (array_key_exists('subject', $requests)) { 27 28 // 内容の不備によるリダイレクト時は値を上書き 29 if ($requests['msg']) { 26 30 $c_diary['subject'] = $subject; 31 $c_diary['body'] = $body; 32 $c_diary['public_flag'] = $public_flag; 27 33 } 28 if (array_key_exists('body', $requests)) { 29 $c_diary['body'] = $body; 30 } 31 if ($public_flag) { 32 $c_diary['pulic_flag'] = $public_flag; 33 } 34 34 35 $this->set('target_c_diary', $c_diary); 35 36 } else { 36 37 $c_diary['public_flag'] = $public_flag ? $public_flag : $c_member['public_flag_diary']; 38 $c_diary['subject'] = $subject; 39 $c_diary['body'] = $body; 37 40 $this->set('target_c_diary', $c_diary); 38 41 } -
OpenPNE/branches/stable-2.12.x/webapp/modules/ktai/validate/page/h_diary_edit.ini
r11346 r11369 1 [subject] 2 type = "string" 3 4 [body] 5 type = "string" 6 1 7 [target_c_diary_id] 2 8 type = "int" … … 5 11 [public_flag] 6 12 type = "string" 13 -
OpenPNE/branches/stable-2.12.x/webapp/modules/ktai/validate/page/h_message_send.ini
r11346 r11369 1 [target_c_message_id] 2 type = "int" 3 1 4 [subject] 2 5 type = "string" -
OpenPNE/branches/stable-2.12.x/webapp/modules/pc/page/f_message_send.php
r11346 r11369 46 46 if ($box == "savebox" && $form_val['target_c_message_id']) { 47 47 $tmplist = db_message_c_message4c_message_id($form_val['target_c_message_id']); 48 if (!array_key_exists('subject', $requests)) { 48 if ($requests['msg1'] || $requests['msg2']) { 49 $form_val['subject'] = $form_val['subject']; 50 $form_val['body'] = $form_val['body']; 51 } else { 49 52 $form_val['subject'] = $tmplist['subject']; 50 }51 if (!array_key_exists('body', $requests)) {52 53 $form_val['body'] = $tmplist['body']; 53 54 } -
OpenPNE/branches/stable-2.12.x/webapp/modules/pc/page/h_album_cover_edit.php
r11346 r11369 33 33 } 34 34 35 $album['subject'] = $subject; 36 $album['description'] = $description; 37 $album['public_flag'] = $public_flag; 35 // 内容の不備によるリダイレクト時は値を上書き 36 if ($requests['msg']) { 37 $album['subject'] = $subject; 38 $album['description'] = $description; 39 $album['public_flag'] = $public_flag; 40 } 38 41 39 42 $this->set('inc_navi', fetch_inc_navi('h')); -
OpenPNE/branches/stable-2.12.x/webapp/modules/pc/page/h_diary_edit.php
r11346 r11369 91 91 } 92 92 93 $c_diary['subject'] = $subject; 94 $c_diary['body'] = $body; 95 if ($public_flag) { 93 // 内容の不備によるリダイレクト時は値を上書き 94 if ($requests['msg']) { 95 $c_diary['subject'] = $subject; 96 $c_diary['body'] = $body; 96 97 $c_diary['public_flag'] = util_cast_public_flag_diary($public_flag); 97 98 } 99 98 100 $this->set("diary", $c_diary); 99 101
Note: See TracChangeset
for help on using the changeset viewer.