Changeset 18541 for branches/version-2_4


Ignore:
Timestamp:
2010/02/02 20:00:05 (12 years ago)
Author:
kajiwara
Message:

merged r18537

  • 重複申込チェックのついたキャンペーンに申し込みできなくなる不具合 を修正(#576)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_4/data/class/pages/campaign/LC_Page_CampaignApplication.php

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