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

Changeset 1525


Ignore:
Timestamp:
Jan 7, 2007, 11:45:02 PM (14 years ago)
Author:
miyumiyu
Message:

携帯日記:エラー時に入力した情報を消さないようにした

Location:
OpenPNE/branches/myumyu/prj_openpne2/webapp/modules/ktai
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/myumyu/prj_openpne2/webapp/modules/ktai/do/h_diary_edit_insert_c_diary.php

    r1265 r1525  
    2323
    2424        if (is_null($subject) || $subject === '') {
    25             $p = array('target_c_diary_id' => $target_c_diary_id, 'msg' => 2);
     25            $p = array('target_c_diary_id' => $target_c_diary_id, 'msg' => 2,'subject'=>$subject,'body' => $body,'public_flag' => $public_flag);
    2626            openpne_redirect('ktai', 'page_h_diary_edit', $p);
    2727        }
    2828
    2929        if (is_null($body) || $body === '') {
    30             $p = array('target_c_diary_id' => $target_c_diary_id, 'msg' => 1);
     30            $p = array('target_c_diary_id' => $target_c_diary_id, 'msg' => 1,'subject'=>$subject,'body' => $body,'public_flag' => $public_flag);
    3131            openpne_redirect('ktai', 'page_h_diary_edit', $p);
    3232        }
  • OpenPNE/branches/myumyu/prj_openpne2/webapp/modules/ktai/page/h_diary_edit.php

    r1268 r1525  
    2424            }
    2525        } else {
    26             $c_diary['public_flag'] = $c_member['public_flag_diary'];
     26            $c_diary['subject'] = $requests['subject'];
     27            $c_diary['body'] = $requests['body'];
     28            if($requests['public_flag'])
     29                $c_diary['public_flag'] = $requests['public_flag'];
     30            else
     31                $c_diary['public_flag'] = $c_member['public_flag_diary'];
    2732            $this->set('target_c_diary', $c_diary);
    2833        }
  • OpenPNE/branches/myumyu/prj_openpne2/webapp/modules/ktai/validate/page/h_diary_edit.ini

    r2 r1525  
     1[subject]
     2type = "string"
     3
     4[body]
     5type = "string"
     6
     7[public_flag]
     8type = "string"
     9
    110[target_c_diary_id]
    211type = "int"
Note: See TracChangeset for help on using the changeset viewer.