Ignore:
Timestamp:
2008/08/05 20:02:22 (16 years ago)
Author:
adachi
Message:

#306 規格登録済み商品を編集時に、画像のアップロード等を行うと、不要な項目が表示される不具合を修正

File:
1 edited

Legend:

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

    r17345 r17497  
    9696        $this->objUpFile->setHiddenFileList($_POST); 
    9797 
     98        // 規格の有り無し判定 
     99        $this->tpl_nonclass = $this->lfCheckNonClass($_POST['product_id']); 
     100 
    98101        // 検索パラメータの引き継ぎ 
    99102        foreach ($_POST as $key => $val) { 
     
    139142                $this->arrRecommend = $this->lfPreGetRecommendProducts($_POST['product_id']); 
    140143 
    141                 // 規格登録ありなし判定 
    142                 $this->tpl_nonclass = $this->lfCheckNonClass($_POST['product_id']); 
    143144                $this->lfProductPage();     // 商品登録ページ 
    144145            } 
     
    146147        // 商品登録・編集 
    147148        case 'edit': 
    148             // 規格登録ありなし判定 
    149             $tpl_nonclass = $this->lfCheckNonClass($_POST['product_id']); 
    150  
    151149            if($_POST['product_id'] == "" and SC_Utils_Ex::sfIsInt($_POST['copy_product_id'])){ 
    152                 $tpl_nonclass = $this->lfCheckNonClass($_POST['copy_product_id']); 
    153             } 
    154             $this->tpl_nonclass = $tpl_nonclass; 
     150                $this->tpl_nonclass = $this->lfCheckNonClass($_POST['copy_product_id']); 
     151            } 
    155152 
    156153            // 入力値の変換 
     
    198195        // 確認ページからの戻り 
    199196        case 'confirm_return': 
    200             // 規格登録ありなし判定 
    201             $this->tpl_nonclass = $this->lfCheckNonClass($_POST['product_id']); 
    202197            $this->lfProductPage();     // 商品登録ページ 
    203198            break; 
     
    438433                $sqlval['product_id'] = $product_id; 
    439434            } 
    440              
     435 
    441436            // INSERTの実行 
    442437            $sqlval['create_date'] = "Now()"; 
    443438            $objQuery->insert("dtb_products", $sqlval); 
    444              
     439 
    445440            // product_id 取得(MySQLの場合) 
    446441            if(DB_TYPE=='mysql'){ 
    447442                $product_id = $objQuery->nextval("dtb_products", "product_id"); 
    448443            } 
    449              
     444 
    450445            // カテゴリを更新 
    451446            $objDb->updateProductCategories($arrList['category_id'], $product_id); 
     
    687682            if($forced) $this->objUpFile->save_file[$arrImageKey[$to_key]] = ""; 
    688683 
    689             if(empty($this->objUpFile->temp_file[$arrImageKey[$to_key]]) &&  
     684            if(empty($this->objUpFile->temp_file[$arrImageKey[$to_key]]) && 
    690685               empty($this->objUpFile->save_file[$arrImageKey[$to_key]])) { 
    691686 
Note: See TracChangeset for help on using the changeset viewer.