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

Changeset 2460


Ignore:
Timestamp:
Apr 6, 2007, 12:02:17 AM (12 years ago)
Author:
ebihara
Message:

h_homeおよびf_homeから予定登録をした際に参加者が全員になってしまっていたバグの修正

Location:
OpenPNE/branches/kunitada/prj_2_6_X_biza/webapp_biz/modules/biz
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/kunitada/prj_2_6_X_biza/webapp_biz/modules/biz/do/f_home_add_biz_schedule.php

    r2330 r2460  
    6868        }
    6969
    70         biz_insertSchedule($title, $u, $begin_date, $finish_date, $begin_time, $finish_time, '', 0, 0, 0, "public", array($target_id));  //予定の登録
     70        $join_members = array($target_id);
     71        biz_insertSchedule($title, $u, $begin_date, $finish_date, $begin_time, $finish_time, '', 0, 0, 0, 'public', $join_members);  //予定の登録
    7172        $p = array('target_c_member_id' => $target_id);
    7273        openpne_redirect('pc', 'page_f_home', $p);
  • OpenPNE/branches/kunitada/prj_2_6_X_biza/webapp_biz/modules/biz/do/h_home_add_biz_schedule.php

    r1087 r2460  
    6262        }
    6363
    64         biz_insertSchedule($title, $u, $begin_date, $finish_date, $begin_time, $finish_time, '', 0, 0);  //予定の登録
     64        $join_members = array($u);
     65        biz_insertSchedule($title, $u, $begin_date, $finish_date, $begin_time, $finish_time, '', 0, 0, 0, 'public', $join_members);  //予定の登録
    6566        biz_readSchedule($u, biz_getScheduleMax());  //既読に
    6667
  • OpenPNE/branches/kunitada/prj_2_6_X_biza/webapp_biz/modules/biz/lib/mysql_functions.php

    r2454 r2460  
    186186        // スケジュールに参加しているメンバー
    187187        $members = biz_getJoinIdSchedule($biz_schedule_id);
    188 
    189         // スケジュール立てたメンバー
    190188        if (biz_isPermissionSchedule($u, $biz_schedule_id)) {
    191             if ($biz_schedule['c_member_id'] == $target_c_member_id) {
    192                 $contain[] = $biz_schedule_id;
    193             } elseif(in_array($biz_schedule['biz_group_id'], $biz_group_id_list) && ($value['public_flag'] != 'private')) {
    194                 $contain[] = $biz_schedule_id;
    195             } elseif (in_array($u, $members) && in_array($target_c_member_id, $members)) {
     189            if (in_array($target_c_member_id, $members)) {
    196190                $contain[] = $biz_schedule_id;
    197191            }
Note: See TracChangeset for help on using the changeset viewer.