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

Changeset 2455


Ignore:
Timestamp:
Apr 5, 2007, 11:02:05 PM (12 years ago)
Author:
ebihara
Message:

繰り返し予定が登録できなかったバグの修正

File:
1 edited

Legend:

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

    r2291 r2455  
    151151        if ($requests['sc_rp']) {
    152152            //終了日の決定
    153             $finish_date = date("Y-m-d", strtotime($requests['sc_b_year'].'-'.$requests['sc_b_month'].'-'.($requests['sc_b_date']+($requests['sc_rcount'])*7)));
     153            $finish_date = date("Y-m-d", strtotime($requests['sc_b_year'].'-'.$requests['sc_b_month'].'-'.$requests['sc_b_date'].' + ' . ($requests['sc_rcount'])*7 . 'days'));
    154154
    155155            //first_idの決定
     
    175175            $tmp = $begin_date;  //処理中の日付
    176176
    177             for ($i=0; date("Ymd", strtotime($tmp)) < date("Ymd", strtotime($finish_date)); $i++) {
    178                 $nowday = strtotime($requests['sc_b_year'].'-'.$requests['sc_b_month'].'-'.($requests['sc_b_date']+$i));
    179                 $tmp = date("Ymd", $nowday);
     177            for ($i=0; strtotime($tmp) < strtotime($finish_date); $i++) {
     178                $nowday = strtotime($begin_date . ' + ' . $i . 'days');
     179                $tmp = date("Y-m-d", $nowday);
    180180                if ($rp_rule & (1 << date("w",$nowday))) {
    181181                    biz_insertSchedule($requests['sc_title'], $u, $tmp, $tmp, $begin_time, $finish_time, $requests['sc_memo'], $rp_rule, $first_id, $requests['biz_group_id'], $requests['public_flag'], $requests['sc_j_mem']);
Note: See TracChangeset for help on using the changeset viewer.