Changeset 17500


Ignore:
Timestamp:
2008/08/06 11:33:47 (16 years ago)
Author:
nakanishi
Message:

#263 カテゴリ検索が機能していない問題を修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/admin/contents/LC_Page_Admin_Contents_CampaignCreateTag.php

    r16582 r17500  
    8787                    break; 
    8888                case 'search_category_id': 
    89                     // 子カテゴリIDの取得 
    90                     $arrRet = $objDb->sfGetChildsID("dtb_category", "parent_category_id", "category_id", $val); 
    91                     $tmp_where = ""; 
    92                     foreach ($arrRet as $val) { 
    93                         if($tmp_where == "") { 
    94                             $tmp_where.= " AND ( category_id = ?"; 
    95                         } else { 
    96                             $tmp_where.= " OR category_id = ?"; 
    97                         } 
    98                         $arrval[] = $val; 
     89                        list($tmp_where, $tmp_arrval) = $objDb->sfGetCatWhere($val);  
     90                        if($tmp_where != "") {  
     91                            $where.= " AND product_id IN (SELECT product_id FROM dtb_product_categories WHERE " . $tmp_where . ")";  
     92                            $arrval = array_merge((array)$arrval, (array)$tmp_arrval); 
    9993                    } 
    100                     $where.= $tmp_where . " )"; 
    10194                    break; 
    10295                case 'search_product_id': 
     
    169162    } 
    170163 
    171     /* 取得文字列の変換 */ 
     164 
     165    /** 
     166     * 取得する文字数の変換を行うメソッド 
     167     * 
     168     * @return void 
     169     */ 
    172170    function lfConvertParam() { 
    173171        /* 
     
    190188    } 
    191189 
    192     /* タグを生成 */ 
     190    /** 
     191     * キャンペーンページのための商品用タグを生成するメソッド 
     192     * 
     193     * @param string $product_id 商品ID 
     194     * @return void 
     195     */ 
     196     
    193197    function lfGetCreateTag($product_id) { 
    194198        // 書き込みタグ 
Note: See TracChangeset for help on using the changeset viewer.