Changeset 17056


Ignore:
Timestamp:
2008/02/15 13:30:41 (14 years ago)
Author:
satou
Message:

#244 【管理画面:商品管理:商品登録】在庫数,購入制限のエラーチェックがスルーする不具合を改修。

File:
1 edited

Legend:

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

    r16992 r17056  
    562562            $objErr->doFunc(array("商品価格", "price02", PRICE_LEN), array("EXIST_CHECK", "NUM_CHECK", "ZERO_CHECK", "SPTAB_CHECK", "MAX_LENGTH_CHECK")); 
    563563 
    564             if(isset($array['stock_unlinited']) && $array['stock_unlimited'] != "1") { 
     564            if(!isset($array['stock_unlinited']) && $array['stock_unlimited'] != "1") { 
    565565                $objErr->doFunc(array("在庫数", "stock", AMOUNT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK")); 
    566566            } 
    567567        } 
    568568 
    569         if(isset($array['sale_unlimited']) && $array['sale_unlimited'] != "1") { 
     569        if(!isset($array['sale_unlimited']) && $array['sale_unlimited'] != "1") { 
    570570            $objErr->doFunc(array("購入制限", "sale_limit", AMOUNT_LEN), array("EXIST_CHECK", "SPTAB_CHECK", "ZERO_CHECK", "NUM_CHECK", "MAX_LENGTH_CHECK")); 
    571571        } 
Note: See TracChangeset for help on using the changeset viewer.