Changeset 22962


Ignore:
Timestamp:
2013/07/13 00:25:28 (7 years ago)
Author:
kimoto
Message:

#2300 ダウンロード商品 URLで別商品DLが出来てしまう
受注詳細を見るように修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/pages/mypage/LC_Page_Mypage_DownLoad.php

    r22926 r22962  
    184184        $dbFactory = SC_DB_DBFactory_Ex::getInstance(); 
    185185        $where = 'o.customer_id = ? AND o.order_id = ? AND pc.product_id = ? AND pc.product_class_id = ?'; 
     186        $where .= ' AND od.product_id = ? AND od.product_class_id = ?'; 
    186187        $where .= ' AND ' . $dbFactory->getDownloadableDaysWhereSql('o'); 
    187188        $where .= ' = 1'; 
    188189        $arrRet = $objQuery->select($col, $table, $where, 
    189                                     array($customer_id, $order_id, $product_id, $product_class_id)); 
     190                                    array($customer_id, $order_id, $product_id, $product_class_id, $product_id, $product_class_id)); 
    190191 
    191192        return $arrRet[0]; 
Note: See TracChangeset for help on using the changeset viewer.