Ignore:
Timestamp:
2007/10/29 20:29:57 (14 years ago)
Author:
nanasess
Message:

デグレ修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/pages/admin/products/LC_Page_Admin_Products_ProductRank.php

    r16582 r16598  
    6969        // 通常時は親カテゴリを0に設定する。 
    7070        $this->arrForm['parent_category_id'] = 
    71             isset($_POST['parent_category_id']) ? $_POST['parent_category_id'] : ""; 
     71            isset($_POST['parent_category_id']) ? $_POST['parent_category_id'] : 0; 
    7272 
    7373        if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
     
    8686            if(SC_Utils_Ex::sfIsInt($input_pos)) { 
    8787                $where = "category_id = " . SC_Utils_Ex::sfQuoteSmart($_POST['parent_category_id']); 
    88                 $objDb->sfMoveRank("dtb_product_categories", "product_id", $_POST['product_id'], $input_pos, "category_id = ?"); 
     88                $objDb->sfMoveRank("dtb_product_categories", "product_id", $_POST['product_id'], $input_pos, $where); 
    8989            } 
    9090            break; 
     
    137137        $objQuery->setorder("rank DESC"); 
    138138 
    139         // viewも絞込みをかける(mysql用) 
    140         //sfViewWhere("&&noncls_where&&", $where, array($category_id), $objQuery->order . " " .  $objQuery->setlimitoffset(SEARCH_PMAX, $startno, true)); TODO 
    141  
    142139        $arrRet = $objQuery->select($col, $table, $where, array($category_id)); 
    143140        return $arrRet; 
Note: See TracChangeset for help on using the changeset viewer.