Changeset 9456 for temp/trunk


Ignore:
Timestamp:
2006/11/29 19:15:25 (20 years ago)
Author:
kakinaka
Message:

blank

Location:
temp/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/admin/products/product.php

    r9447 r9456  
    347347        } 
    348348         
    349         // dtb_products_class ¤Î¥«¥é¥à¤ò¼èÆÀ 
    350         $arrColList = sfGetColumnList("dtb_products_class", $objQuery); 
    351         $arrColList_tmp = array_flip($arrColList); 
    352          
    353         // ¥³¥Ô¡¼¤·¤Ê¤¤Îó 
    354         unset($arrColList[$arrColList_tmp["product_class_id"]]);     //µ¬³ÊID 
    355         unset($arrColList[$arrColList_tmp["product_id"]]);           //¾¦ÉÊID 
    356          
    357         $col = sfGetCommaList($arrColList); 
    358          
    359349        // ¥³¥Ô¡¼¾¦Éʤξì¹ç¤Ë¤Ïµ¬³Ê¤â¥³¥Ô¡¼¤¹¤ë 
    360         $objQuery->query("INSERT INTO dtb_products_class (product_id, ". $col .") SELECT ?, " . $col. " FROM dtb_products_class WHERE product_id = ? ORDER BY product_class_id", array($product_id, $_POST["copy_product_id"])); 
    361          
    362         $objQuery->getlastquery(); 
    363          
     350        if($_POST["copy_product_id"] != "" and sfIsInt($_POST["copy_product_id"])){ 
     351            // dtb_products_class ¤Î¥«¥é¥à¤ò¼èÆÀ 
     352            $arrColList = sfGetColumnList("dtb_products_class", $objQuery); 
     353            $arrColList_tmp = array_flip($arrColList); 
     354             
     355            // ¥³¥Ô¡¼¤·¤Ê¤¤Îó 
     356            unset($arrColList[$arrColList_tmp["product_class_id"]]);     //µ¬³ÊID 
     357            unset($arrColList[$arrColList_tmp["product_id"]]);           //¾¦ÉÊID 
     358             
     359            $col = sfGetCommaList($arrColList); 
     360        } 
    364361 
    365362    } else { 
Note: See TracChangeset for help on using the changeset viewer.