Changeset 18304
- Timestamp:
- 2009/09/21 23:49:18 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/pages/admin/products/LC_Page_Admin_Products_Product.php
r18298 r18304 452 452 // コピー商品の場合には規格もコピーする 453 453 if($_POST["copy_product_id"] != "" and SC_Utils_Ex::sfIsInt($_POST["copy_product_id"])){ 454 454 455 455 if($this->tpl_nonclass) 456 456 { 457 //規格 がない場合のコピーは価格等の入力が発生しているので、その内容で追加登録457 //規格なしの場合、コピーは価格等の入力が発生しているため、その内容で追加登録を行う 458 458 $arrList['product_id'] = $product_id; 459 459 $this->lfCopyProductClass($arrList, $objQuery); … … 461 461 else 462 462 { 463 //規格がある場合のコピーは複製元の内容で追加登録 463 //規格がある場合のコピーは複製元の内容で追加登録を行う 464 464 // dtb_products_class のカラムを取得 465 465 $dbFactory = SC_DB_DBFactory_Ex::getInstance(); … … 477 477 } 478 478 } 479 480 479 } else { 481 480 $product_id = $arrList['product_id']; … … 736 735 return $dist_name; 737 736 } 737 738 738 /** 739 739 * dtb_products_classの複製 … … 746 746 function lfCopyProductClass($arrList,$objQuery) 747 747 { 748 // 複製元のdtb_products_classを取得( 1件しかないはず)748 // 複製元のdtb_products_classを取得(規格なしのため、1件のみの取得) 749 749 $col = "*"; 750 750 $table = "dtb_products_class"; … … 767 767 unset($records["product_class_id"]); 768 768 unset($records["update_date"]); 769 769 770 770 $records["create_date"] = "Now()"; 771 771 $objQuery->insert($table, $records);
Note: See TracChangeset
for help on using the changeset viewer.