Ignore:
Timestamp:
2012/01/17 16:32:25 (12 years ago)
Author:
Seasoft
Message:

2.12系へマイルストーン変更となったチケット分を差し戻し
r21326 #1536
r21325 #1528
r21324 #1547,#1546
r21323 #1546
r21322 #1543
r21321 #1536
r21320 #1536
r21319 #1544
r21318 #1521,#1522
r21317 #1431

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/pages/products/LC_Page_Products_Detail.php

    r21402 r21410  
    453453        foreach($arrRecommendData as $recommend){ 
    454454            $arrRecommendProductId[] = $recommend["recommend_product_id"]; 
     455            $arrRecommendData[$recommend["recommend_product_id"]] = $recommend['comment']; 
    455456        } 
    456457 
     
    458459        $arrProducts = $objProduct->getListByProductIds($objQuery, $arrRecommendProductId); 
    459460 
     461        //取得している並び順で並び替え 
     462        // FIXME SC_Productあたりにソート処理はもってくべき 
     463        $arrProducts2 = array(); 
     464        foreach($arrProducts as $item) { 
     465            $arrProducts2[ $item['product_id'] ] = $item; 
     466        } 
     467 
    460468        $arrRecommend = array(); 
    461         foreach ($arrRecommendData as $key => $arrRow) { 
    462             $arrRecommendData[$key] = array_merge($arrRow, $arrProducts[$arrRow['recommend_product_id']]); 
    463         } 
    464  
    465         return $arrRecommendData; 
     469        foreach($arrRecommendProductId as $product_id) { 
     470            $arrProducts2[$product_id]['comment'] = $arrRecommendData[$product_id]; 
     471            $arrRecommend[] = $arrProducts2[$product_id]; 
     472        } 
     473 
     474        return $arrRecommend; 
    466475    } 
    467476 
Note: See TracChangeset for help on using the changeset viewer.