Changeset 16557


Ignore:
Timestamp:
2007/10/25 13:36:35 (14 years ago)
Author:
nanasess
Message:

商品登録時の product_id 取得修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php

    r16554 r16557  
    418418 
    419419        if($arrList['product_id'] == "") { 
    420             if (DB_TYPE == "pgsql") { 
    421                 $product_id = $objQuery->nextval("dtb_products", "product_id"); 
    422                 $sqlval['product_id'] = $product_id; 
    423             } 
     420            // product_id 取得 
     421            $product_id = $objQuery->nextval("dtb_products", "product_id"); 
     422            $sqlval['product_id'] = $product_id; 
    424423 
    425424            // INSERTの実行 
     
    429428            // カテゴリを更新 
    430429            $objDb->updateProductCategories($arrList['category_id'], $sqlval['product_id']); 
    431  
    432             if (DB_TYPE == "mysql") { 
    433                 $product_id = $objQuery->nextval("dtb_products", "product_id"); 
    434                 $sqlval['product_id'] = $product_id; 
    435             } 
    436430 
    437431            // コピー商品の場合には規格もコピーする 
Note: See TracChangeset for help on using the changeset viewer.