Changeset 22095


Ignore:
Timestamp:
2012/11/12 20:28:21 (9 years ago)
Author:
Seasoft
Message:

#1963 (LC_Page_Admin_Products_ProductClass 在庫数無制限の場合にも在庫数を設定している)

File:
1 edited

Legend:

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

    r21905 r22095  
    244244        for ($i = 0; $i < $total; $i++) { 
    245245            $del_flg = SC_Utils_Ex::isBlank($arrList['check'][$i]) ? 1 : 0; 
    246             $stock_unlimited = SC_Utils_Ex::isBlank($arrList['stock_unlimited'][$i]) ? 0 : $arrList['stock_unlimited'][$i]; 
    247246            $price02 = SC_Utils_Ex::isBlank($arrList['price02'][$i]) ? 0 : $arrList['price02'][$i]; 
    248247            // dtb_products_class 登録/更新用 
     
    261260            $arrPC['deliv_fee'] = $arrDefault['deliv_fee']; 
    262261            $arrPC['point_rate'] = $arrDefault['point_rate']; 
    263             $arrPC['stock_unlimited'] = $stock_unlimited; 
     262            if ($arrList['stock_unlimited'][$i] == 1) { 
     263                $arrPC['stock_unlimited'] = 1; 
     264                $arrPC['stock'] = null; 
     265            } else { 
     266                $arrPC['stock_unlimited'] = 0; 
     267            } 
    264268            $arrPC['price02'] = $price02; 
    265269 
Note: See TracChangeset for help on using the changeset viewer.