Ignore:
Timestamp:
2007/10/30 17:30:45 (14 years ago)
Author:
nanasess
Message:

非公開商品表示修正(#153)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/helper/SC_Helper_DB.php

    r16598 r16615  
    715715     * 
    716716     */ 
    717     function sfGetCategoryId($product_id, $category_id = 0) { 
     717    function sfGetCategoryId($product_id, $category_id = 0, $closed = false) { 
     718        if ($closed) { 
     719            $status = ""; 
     720        } else { 
     721            $status = "status = 1"; 
     722        } 
    718723 
    719724        if(!$this->g_category_on) { 
     
    723728            if(SC_Utils_Ex::sfIsInt($category_id) && $this->sfIsRecord("dtb_category","category_id", $category_id)) { 
    724729                $this->g_category_id = array($category_id); 
    725             } else if (SC_Utils_Ex::sfIsInt($product_id) && $this->sfIsRecord("dtb_products","product_id", $product_id, "status = 1")) { 
     730            } else if (SC_Utils_Ex::sfIsInt($product_id) && $this->sfIsRecord("dtb_products","product_id", $product_id, $status)) { 
    726731                $objQuery = new SC_Query(); 
    727732                $where = "product_id = ?"; 
Note: See TracChangeset for help on using the changeset viewer.