Changeset 18562 for trunk/data/class/pages/campaign
- Timestamp:
- 2010/02/12 18:46:50 (16 years ago)
- Location:
- trunk/data/class/pages/campaign
- Files:
-
- 2 edited
-
LC_Page_CampaignApplication.php (modified) (2 diffs)
-
LC_Page_CampaignEntry.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/data/class/pages/campaign/LC_Page_CampaignApplication.php
r17653 r18562 120 120 121 121 if($orverlapping_flg) { 122 if($this->lfOverlappingCheck($objCustomer->getValue('customer_id'), $obj Query)) {122 if($this->lfOverlappingCheck($objCustomer->getValue('customer_id'), $objCampaignSess->getCampaignId(), $objQuery)) { 123 123 $this->arrErr['login_email'] = "※ 複数回ご応募することは出来ません。"; 124 124 } … … 253 253 * 戻り値:フラグ (重複があったら true 重複がなかったら false) 254 254 */ 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)); 257 257 if($count > 0) { 258 258 return true; -
trunk/data/class/pages/campaign/LC_Page_CampaignEntry.php
r17382 r18562 129 129 130 130 if ($this->arrErr || $_POST["mode"] == "return") { // 入力エラーのチェック 131 foreach($ this->arrForm as $key => $val) {132 $this->$key = $val;131 foreach($arrRegistColumn as $key) { 132 $this->$key['column'] = $arrForm[$key['column']]; 133 133 } 134 134
Note: See TracChangeset
for help on using the changeset viewer.
