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

Changeset 1596


Ignore:
Timestamp:
Jan 16, 2007, 11:19:46 PM (13 years ago)
Author:
takanashi
Message:

r1542取り込み #429対処

Location:
OpenPNE/branches/2_6/webapp_biz/modules/biz
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/2_6/webapp_biz/modules/biz/do/f_home_edit_biz_todo.php

    r1181 r1596  
    1717        $sort_order = $requests['sort_order'];
    1818        $writer_id = $requests['writer_id'];
    19         $member_id = $requests['member_id'];
    2019        $memo = $requests['memo'];
     20        $is_done = $requests['is_done'];
     21        $due_year = $requests['due_year'];
     22        $due_month = $requests['due_month'];
     23        $due_day = $requests['due_day'];
     24        $priority = $requests['priority'];
     25        $biz_group_id = $requests['biz_group_id'];
     26        $public_flag = $requests['public_flag'];
    2127        // ----------
    2228
     
    2531                }
    2632
    27         biz_editTodo($requests['target_id'], $memo, $writer_id, $sort_order, $is_check, $id);
     33        if (!$biz_group_id && $public_flag == 'group') {
     34                $_REQUEST['msg'] = '「グループまで公開」Todoの場合はグループを指定してください';
     35                openpne_forward('biz', 'page', 'fh_home_edit_biz_todo');
     36                exit;
     37        }
     38
     39        $member_info = db_member_c_member4c_member_id_LIGHT($writer_id);
     40
     41        $todo_info = biz_getTodo($id);
     42
     43        $due_datetime = $due_year . '-' . $due_month . '-' . $due_day . ' 00:00:00';
     44        if(!$todo_info['c_member_id'] && !$is_check) {
     45            $todo_info['c_member_id'] = $writer_id;
     46        }
     47
     48        biz_editTodo($todo_info['c_member_id'], $memo, $writer_id, $sort_order, $is_check, $id,
     49            $is_done, $due_datetime, $priority, $biz_group_id, $public_flag);
    2850
    2951        $p = array('target_c_member_id' => $requests['target_id']);
  • OpenPNE/branches/2_6/webapp_biz/modules/biz/validate/do/f_home_edit_biz_todo.ini

    r217 r1596  
    2525type="string"
    2626
     27[is_done]
     28type="int"
     29default=0
     30
     31[due_year]
     32type="string"
     33require=0
     34
     35[due_month]
     36type="string"
     37require=0
     38
     39[due_day]
     40type="string"
     41require=0
     42
     43[priority]
     44type="int"
     45
     46[biz_group_id]
     47type="int"
     48
     49[public_flag]
     50type="string"
Note: See TracChangeset for help on using the changeset viewer.