Changeset 18648


Ignore:
Timestamp:
2010/05/09 01:51:02 (11 years ago)
Author:
Seasoft
Message:

merge r18541

  • 取得元: version-2_4
  • 未テスト

【取得元のログメッセージ】
merged r18537

  • 重複申込チェックのついたキャンペーンに申し込みできなくなる不具合 を修正(#576)
Location:
branches/comu-ver2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2

  • branches/comu-ver2/data/class/pages/campaign/LC_Page_CampaignApplication.php

    r18234 r18648  
    119119 
    120120                    if($orverlapping_flg) { 
    121                         if($this->lfOverlappingCheck($objCustomer->getValue('customer_id'), $objQuery)) { 
     121                        if($this->lfOverlappingCheck($objCustomer->getValue('customer_id'), $objCampaignSess->getCampaignId(), $objQuery)) { 
    122122                            $this->arrErr['login_email'] = "※ 複数回ご応募することは出来ません。"; 
    123123                        } 
     
    252252     * 戻り値:フラグ (重複があったら true 重複がなかったら false) 
    253253     */ 
    254     function lfOverlappingCheck($customer_id, &$objQuery) { 
    255         $count = $objQuery->count("dtb_campaign_order", "customer_id = ?", array($customer_id)); 
     254    function lfOverlappingCheck($customer_id, $campaign_id, &$objQuery) { 
     255        $count = $objQuery->count("dtb_campaign_order", "customer_id = ? AND campaign_id = ?", array($customer_id, $campaign_id)); 
    256256        if($count > 0) { 
    257257            return true; 
Note: See TracChangeset for help on using the changeset viewer.