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

Changeset 5352


Ignore:
Timestamp:
Feb 26, 2008, 3:48:01 PM (11 years ago)
Author:
ogawa
Message:

#1997:BIZ:ニックネームを空欄にしてもエラーにならない

Location:
OpenPNE/branches/stable-2.10.x/webapp_biz/modules/biz
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.10.x/webapp_biz/modules/biz/do/h_home_edit_nickname.php

    r1856 r5352  
    77class biz_do_h_home_edit_nickname extends OpenPNE_Action
    88{
     9    function handleError($errors)
     10    {
     11        $p['msg'] = array_shift($errors);
     12        openpne_redirect('pc', 'page_h_home', $p);
     13    }
     14
    915    function execute($requests)
    1016    {
     
    1218
    1319        // --- リクエスト変数
    14         $state = $requests['state'];
    15         $member_id = $requests['member_id'];
     20        $nickname = $requests['nickname'];
    1621        // ----------
    1722
    18         biz_changeNickname($member_id, $state);
     23        biz_changeNickname($u, $nickname);
    1924
    20         $p = array();
    21         openpne_redirect('pc', 'page_h_home', $p);
     25        openpne_redirect('pc', 'page_h_home');
    2226    }
    2327}
  • OpenPNE/branches/stable-2.10.x/webapp_biz/modules/biz/templates/inc_biz_state.tpl

    r4274 r5352  
    33({t_form m=biz a=do_h_home_edit_nickname})
    44<input type="hidden" name="sessid" value="({$PHPSESSID})">
    5 <input type="hidden" name="member_id" value="({$target_id})">
    65({if $is_form})
    7 <input type="text" class="text" name="state" value="({$c_member.nickname})" style="width:112px;text-align:center;">
     6<input type="text" class="text" name="nickname" value="({$c_member.nickname})" style="width:112px;text-align:center;">
    87<img src="./skin/dummy.gif" alt="dummy" class="v_spacer_s">
    98<input type="submit" class="submit" value=" 名前変更 " style="width:112px;">
  • OpenPNE/branches/stable-2.10.x/webapp_biz/modules/biz/validate/do/h_home_edit_nickname.ini

    r217 r5352  
    1 [member_id]
    2 type="int"
    3 
    4 [state]
    5 type="string"
    6 
     1[nickname]
     2type = "string"
     3required = 1
     4caption = "ニックネーム"
     5max = 40
Note: See TracChangeset for help on using the changeset viewer.