Ignore:
Timestamp:
2011/01/18 06:06:11 (15 years ago)
Author:
AMUAMU
Message:

#704 (CSV出力で在庫無制限が0で出力されるパターンが存在する) の解決
#752 (商品登録CSV 最大カラム数($colmax)の比較の誤り) の解決

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/helper/SC_Helper_CSV.php

    r19805 r19950  
    9393 
    9494        // CSV出力タイトル行の作成 
    95         $arrCsvOutput = SC_Utils_Ex::sfSwapArray($this->sfgetCsvOutput($csv_id, 'status = 1')); 
     95        $arrCsvOutput = SC_Utils_Ex::sfSwapArray($this->sfgetCsvOutput($csv_id, 'status = ' . CSV_COLUMN_STATUS_FLG_ENABLE)); 
    9696 
    9797        if (count($arrCsvOutput) <= 0) break; 
     
    113113        $result = true; 
    114114        foreach($arrCSVFrame as $key => $val) { 
    115             if($val['status'] != "1" 
    116                     and $val['rw_flg'] == "1" 
     115            if($val['status'] != CSV_COLUMN_STATUS_FLG_ENABLE 
     116                    and $val['rw_flg'] == CSV_COLUMN_RW_FLG_READ_WRITE 
    117117                    and $val['error_check_types'] != "" 
    118118                    and stripos($val['error_check_types'], "EXIST_CHECK") !== FALSE) { 
     
    133133        $result = true; 
    134134        foreach($arrCSVFrame as $key => $val) { 
    135             if($val['status'] != "1" 
    136                     and $val['rw_flg'] == "3") { 
     135            if($val['status'] != CSV_COLUMN_STATUS_FLG_ENABLE 
     136                    and $val['rw_flg'] == CSV_COLUMN_RW_FLG_KEY_FIELD) { 
    137137                //キーフィールド 
    138138                $result = false; 
     
    178178 
    179179        // CSV出力タイトル行の作成 
    180         $arrOutput = SC_Utils_Ex::sfSwapArray($this->sfgetCsvOutput(1, 'status = 1')); 
     180        $arrOutput = SC_Utils_Ex::sfSwapArray($this->sfgetCsvOutput(1, 'status = ' . CSV_COLUMN_STATUS_FLG_ENABLE)); 
    181181        if (count($arrOutput) <= 0) return false; // 失敗終了 
    182182        $arrOutputCols = $arrOutput['col']; 
     
    263263 
    264264        // CSV出力タイトル行の作成 
    265         $arrOutput = SC_Utils_Ex::sfSwapArray($this->sfgetCsvOutput(5, 'status = 1')); 
     265        $arrOutput = SC_Utils_Ex::sfSwapArray($this->sfgetCsvOutput(5, 'status = ' . CSV_COLUMN_STATUS_FLG_ENABLE)); 
    266266        if (count($arrOutput) <= 0) return false; // 失敗終了 
    267267        $arrOutputCols = $arrOutput['col']; 
Note: See TracChangeset for help on using the changeset viewer.