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

Changeset 2456 for OpenPNE


Ignore:
Timestamp:
Apr 5, 2007, 11:16:22 PM (13 years ago)
Author:
ebihara
Message:

携帯から全体の予定登録ができなかったバグの修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/kunitada/prj_2_6_X_biza/webapp_biz/modules/ktai_biz/do/fhg_biz_schedule_add.php

    r2291 r2456  
    1818       
    1919        $requests['sc_b_year'] = $requests['sc_b_year'] + 2000;
    20        
    21         if (!$requests['sc_j_mem']) {
    22             //「全員」が含まれている場合は、配列を空に
    23             $requests['sc_j_mem'] = array();
    24         } elseif ($requests['sc_j_mem'] == "my") {
    25             //本人またはフレンドのみの場合
    26             $requests['sc_j_mem']=array($requests['target_id']);
    27         } else {
    28             $join_group = biz_getGroupMember($requests['sc_j_mem']);
    29             $i = 0;
    3020
    31             $requests['sc_j_mem'] = array();
    32             foreach ($join_group as $key) {
    33                     $requests['sc_j_mem'][$i] = $key['c_member_id'];
    34                     $i++;
    35             }
     21        $biz_schedule_member = array();
     22 
     23        // 自分の予定の場合は自分のみを参加者とする
     24        if ($requests['sc_j_mem'] == 'my') {
     25            $biz_schedule_member = array($requests['target_id']);
    3626        }
    3727
     
    154144        if (!$requests['sc_rp']) {
    155145            //繰り返しをしない予定登録
    156             biz_insertSchedule($requests['sc_title'], $requests['target_id'], $begin_date, $finish_date, $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, 0, $requests['biz_group_id'], $requests['public_flag'], $requests['sc_j_mem']);
     146            biz_insertSchedule($requests['sc_title'], $requests['target_id'], $begin_date, $finish_date, $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, 0, $requests['biz_group_id'], $requests['public_flag'], $biz_schedule_member);
    157147        } else {
    158148            //繰り返し予定
     
    163153                $tmp = date("Ymd", $nowday);
    164154                if ($rp_rule & (1 << date("w",$nowday))) {
    165                     biz_insertSchedule($requests['sc_title'], $requests['target_id'], $tmp, $tmp, $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, $first_id, $requests['biz_group_id'], $requests['public_flag'], $requests['sc_j_mem']);
     155                    biz_insertSchedule($requests['sc_title'], $requests['target_id'], $tmp, $tmp, $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, $first_id, $requests['biz_group_id'], $requests['public_flag'], $biz_schedule_member);
    166156                }
    167157            }
Note: See TracChangeset for help on using the changeset viewer.