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

Changeset 2892


Ignore:
Timestamp:
May 14, 2007, 9:19:35 PM (12 years ago)
Author:
ebihara
Message:

#732:携帯から他人のTodoを登録・編集ができなかったバグの修正

Location:
OpenPNE/branches/2.8.x/webapp_biz/modules/ktai_biz
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2.8.x/webapp_biz/modules/ktai_biz/page/fh_biz_todo_add.php

    r1856 r2892  
    1313        $this->set('tail', $GLOBALS['KTAI_URL_TAIL']);
    1414
    15         if (empty($requests['target_id']) || ($requests['target_id'] == $u)) {
     15        if (empty($requests['target_c_member_id']) || ($requests['target_c_member_id'] == $u)) {
    1616            //自分
    17             $target_id = $u;
     17            $target_c_member_id = $u;
    1818            $this->set('is_h', true);       //判別フラグ
    1919        } else {
    2020            //他人
    21             $target_id = $requests['target_id'];
     21            $target_c_member_id = $requests['target_c_member_id'];
    2222            $this->set('is_f', true);       //判別フラグ
    2323        }
     24
     25        $this->set('target_c_member_id', $target_c_member_id);
    2426
    2527        return 'success';
  • OpenPNE/branches/2.8.x/webapp_biz/modules/ktai_biz/page/fh_biz_todo_edit.php

    r1856 r2892  
    2323        $this->set("todo", $todo);
    2424
    25         if (empty($requests['target_id']) || ($requests['target_id'] == $u)) {
     25        if (empty($requests['target_c_member_id']) || ($requests['target_c_member_id'] == $u)) {
    2626            //自分
    27             $target_id = $u;
     27            $target_c_member_id = $u;
    2828            $this->set('is_h', true);       //判別フラグ
    2929        } else {
    3030            //他人
    31             $target_id = $requests['target_id'];
     31            $target_c_member_id = $requests['target_c_member_id'];
    3232            $this->set('is_f', true);       //判別フラグ
    3333        }
    3434
     35        $this->set('target_c_member_id', $target_c_member_id);
     36       
    3537        return 'success';
    3638    }
  • OpenPNE/branches/2.8.x/webapp_biz/modules/ktai_biz/page/fh_biz_todo_list.php

    r1856 r2892  
    2626        $this->set('todolist', $todolist);
    2727        $this->set('is_checked', $is_checked);
     28        $this->set('target_c_member_id', $target_c_member_id);
    2829
    2930        return 'success';
  • OpenPNE/branches/2.8.x/webapp_biz/modules/ktai_biz/templates/fh_biz_todo_list.tpl

    r1477 r2892  
    44<hr>
    55({foreach from=$todolist item=todo})
    6 <a href="({t_url m=ktai_biz a=do_fh_biz_todo_check})&amp;target_biz_todo_id=({$todo.biz_todo_id})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;is_checked=({$is_checked})&amp;({$tail})">
     6<a href="({t_url m=ktai_biz a=do_fh_biz_todo_check})&amp;target_biz_todo_id=({$todo.biz_todo_id})&amp;target_c_member_id=({$target_c_member_id})&amp;is_checked=({$is_checked})&amp;({$tail})">
    77({if $is_checked})×({else})□({/if})
    88</a>
    99({$todo.memo})
    10 <a href="({t_url m=ktai_biz a=page_fh_biz_todo_edit})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;target_biz_todo_id=({$todo.biz_todo_id})&amp;({$tail})">編集</a>
    11 <a href="({t_url m=ktai_biz a=do_fh_biz_todo_delete})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;target_biz_todo_id=({$todo.biz_todo_id})&amp;({$tail})">削除</a><br>
     10<a href="({t_url m=ktai_biz a=page_fh_biz_todo_edit})&amp;target_c_member_id=({$target_c_member_id})&amp;target_biz_todo_id=({$todo.biz_todo_id})&amp;({$tail})">編集</a>
     11<a href="({t_url m=ktai_biz a=do_fh_biz_todo_delete})&amp;target_c_member_id=({$target_c_member_id})&amp;target_biz_todo_id=({$todo.biz_todo_id})&amp;({$tail})">削除</a><br>
    1212({/foreach})
    1313<hr>
    14 <a href="({t_url m=ktai_biz a=page_fh_biz_todo_add})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">Todoを追加</a><br>
     14<a href="({t_url m=ktai_biz a=page_fh_biz_todo_add})&amp;target_c_member_id=({$target_c_member_id})&amp;({$tail})">Todoを追加</a><br>
    1515({if $is_checked})
    16 <a href="({t_url m=ktai_biz a=page_fh_biz_todo_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;({$tail})">未完了Todoを見る</a>
     16<a href="({t_url m=ktai_biz a=page_fh_biz_todo_list})&amp;target_c_member_id=({$target_c_member_id})&amp;({$tail})">未完了Todoを見る</a>
    1717({else})
    18 <a href="({t_url m=ktai_biz a=page_fh_biz_todo_list})&amp;target_c_member_id=({$target_c_member.c_member_id})&amp;is_checked=1&amp;({$tail})">完了済みTodoを見る</a>
     18<a href="({t_url m=ktai_biz a=page_fh_biz_todo_list})&amp;target_c_member_id=({$target_c_member_id})&amp;is_checked=1&amp;({$tail})">完了済みTodoを見る</a>
    1919({/if})
    2020<hr>
Note: See TracChangeset for help on using the changeset viewer.