Changeset 21225


Ignore:
Timestamp:
2011/08/31 14:34:15 (9 years ago)
Author:
nanasess
bzr:base-revision:
svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_11-dev:21224
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php 15559@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fadmin%2Fproducts%2FLC_Page_Admin_Products_ProductClass.php
bzr:mapping-version:
v4
bzr:merge:

ohkouchi@loop-az.jp-20110831053341-85huyf947bazisjg
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20110831053412-1kvl8hda68vbu9nd
bzr:revno:
3925
bzr:revprop:branch-nick:
branches/version-2_11-dev
bzr:root:
branches/version-2_11-dev
bzr:testament:

bazaar-ng testament short form 2.1
revision-id: ohkouchi@loop-az.jp-20110831053412-1kvl8hda68vbu9nd
sha1: 3a80729ceb811054b67aa1597de23ccca3bab068
bzr:text-parents:

data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_11-dev:21185
bzr:timestamp:
2011-08-31 14:34:12.615999937 +0900
bzr:user-agent:
bzr2.4.0+bzr-svn1.1.0dev0
Message:

#1343 (商品の規格を再登録すると購入履歴詳細に商品情報が表示されなくなる)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php

    r21185 r21225  
    237237        $arrDefault = $this->getProductsClass($product_id); 
    238238 
    239         // XXX #1188 UPDATE だとデータの不整合が発生するため DELETE/INSERT を行う 
    240239        $objQuery->delete('dtb_products_class', 'product_id = ? AND class_combination_id IS NOT NULL', array($product_id)); 
    241240 
     
    295294 
    296295            $arrPC['create_date'] = 'CURRENT_TIMESTAMP'; 
    297             $arrPC['product_class_id'] = $objQuery->nextVal('dtb_products_class_product_class_id'); 
     296            // 更新の場合は, product_class_id を使い回す 
     297            if (!SC_Utils_Ex::isBlank($arrList['product_class_id'][$i])) { 
     298                $arrPC['product_class_id'] = $arrList['product_class_id'][$i]; 
     299            } else { 
     300                $arrPC['product_class_id'] = $objQuery->nextVal('dtb_products_class_product_class_id'); 
     301            } 
     302 
    298303            /* 
    299304             * チェックを入れない商品は product_type_id が NULL になるので, 0 を入れる 
Note: See TracChangeset for help on using the changeset viewer.