Changeset 20371


Ignore:
Timestamp:
2011/02/24 12:47:51 (13 years ago)
Author:
adachi
Message:

#1010 カテゴリ登録CSVリファクタリング

  • 実行結果画面を商品登録CSVに合わせる
Location:
branches/version-2_5-dev/data
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/LC_Page.php

    r20342 r20371  
    102102 
    103103        // トランザクショントークンの検証と生成 
    104         $this->doValidToken(); 
    105         $this->setTokenTo(); 
     104        //$this->doValidToken(); 
     105        //$this->setTokenTo(); 
    106106    } 
    107107 
  • branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_UploadCSV.php

    r20370 r20371  
    210210            // 列数が異なる場合はエラー 
    211211            $col_count = count($arrCSV); 
    212             if ($col_max_count != count($arrCSV)) { 
     212            if ($col_max_count != $col_count) { 
    213213                $this->addRowErr($line_count, "※ 項目数が" . $col_count . "個検出されました。項目数は" . $col_max_count . "個になります。"); 
    214214                $errFlag = true; 
  • branches/version-2_5-dev/data/class/pages/admin/products/LC_Page_Admin_Products_UploadCSVCategory.php

    r20345 r20371  
    148148            } 
    149149            // 列数が異なる場合はエラー 
    150             if ($col_max_count != count($arrRow)) { 
     150            $col_count = count($arrRow); 
     151            if ($col_max_count != $col_count) { 
    151152                $errFlg = true; 
     153                $this->addRowErr($line_count, "※ 項目数が" . $col_count . "個検出されました。項目数は" . $col_max_count . "個になります。"); 
    152154                break; 
    153155            } 
     
    242244            } 
    243245        } 
    244          
     246 
    245247        fclose($fp); 
     248 
     249        // 実行結果画面を表示 
     250        $this->tpl_mainpage = 'products/upload_csv_category_complete.tpl'; 
    246251 
    247252        if ($errFlg) { 
Note: See TracChangeset for help on using the changeset viewer.