Changeset 19951


Ignore:
Timestamp:
2011/01/18 06:10:33 (10 years ago)
Author:
AMUAMU
Message:

#704 (CSV出力で在庫無制限が0で出力されるパターンが存在する) の解決

File:
1 edited

Legend:

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

    r19948 r19951  
    682682            $objErr->doFunc(array(SALE_PRICE_TITLE, "price02", PRICE_LEN), array("EXIST_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK")); 
    683683 
    684             if(!isset($array['stock_unlimited']) && $array['stock_unlimited'] != "1") { 
     684            if(!isset($array['stock_unlimited']) && $array['stock_unlimited'] != UNLIMITED_FLG_UNLIMITED) { 
    685685                $objErr->doFunc(array("在庫数", "stock", AMOUNT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK")); 
    686686            } 
     
    919919        $sqlval = SC_Utils_Ex::arrayDefineIndexes($sqlval, $checkArray); 
    920920 
    921         $sqlval['stock_unlimited'] = $sqlval['stock_unlimited'] ? '1' : '0'; 
     921        $sqlval['stock_unlimited'] = $sqlval['stock_unlimited'] ? UNLIMITED_FLG_UNLIMITED : UNLIMITED_FLG_LIMITED; 
    922922        $sqlval['creator_id'] = strlen($_SESSION['member_id']) >= 1 ? $_SESSION['member_id'] : '0'; 
    923923 
Note: See TracChangeset for help on using the changeset viewer.