[Svn-src-all:1248] [version-2_5-dev 20137] #984([フロント]商品購入)

nanasess admin @ mail.ec-cube.net
2011年 2月 11日 (金) 18:09:38 JST


Subversion committed to /home/svn/open 20137
http://svn.ec-cube.net/open_trac/changeset/20137
┌────────────────────────────┐
│更新者 :  nanasess                                     │
│更新日時:  2011-02-11 18:09:38 +0900 (金, 11  2月 2011)│
└────────────────────────────┘

Log:
--------------------------------------------------------
#984([フロント]商品購入)
 * 未定義エラー修正


Changed:                      [U:修正,A:追加,D:削除]
--------------------------------------------------------
U   branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping.php

変更: branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping.php
===================================================================
--- branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping.php	2011-02-11 06:18:09 UTC (rev 20136)
+++ branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping.php	2011-02-11 09:09:38 UTC (rev 20137)
@@ -90,8 +90,9 @@
         // ログイン済みの場合は次画面に遷移
         if ($objCustomer->isLoginSuccess(true)) {
             SC_Response_Ex::sendRedirect(
-                    $this->getNextLocation($this->cartKey, $this->tpl_uniqid,
-                                           $objCustomer, $objPurchase));
+                    $this->getNextlocation($this->cartKey, $this->tpl_uniqid,
+                                           $objCustomer, $objPurchase,
+                                           $objSiteSess));
             exit;
         }
         // 非会員かつ, ダウンロード商品の場合はエラー表示
@@ -134,7 +135,8 @@
                 }
                 SC_Response_Ex::sendRedirect(
                         $this->getNextLocation($this->cartKey, $this->tpl_uniqid,
-                                               $objCustomer, $objPurchase));
+                                               $objCustomer, $objPurchase,
+                                               $objSiteSess));
                 exit;
             }
             // ログインに失敗した場合
@@ -309,9 +311,10 @@
      * @param string $uniqid 受注一時テーブルのユニークID
      * @param SC_Customer $objCustomer SC_Customer インスタンス
      * @param SC_Helper_Purchase $objPurchase SC_Helper_Purchase インスタンス
+     * @param SC_SiteSession $objSiteSess SC_SiteSession インスタンス
      * @return string 遷移先のパス
      */
-    function getNextLocation($product_type_id, $uniqid, &$objCustomer, &$objPurchase) {
+    function getNextLocation($product_type_id, $uniqid, &$objCustomer, &$objPurchase, &$objSiteSess) {
         switch ($product_type_id) {
         case PRODUCT_TYPE_DOWNLOAD:
             $objPurchase->saveOrderTemp($uniqid, array(), $objCustomer);




Svn-src-all メーリングリストの案内