Ignore:
Timestamp:
2011/11/10 19:41:02 (12 years ago)
Author:
Seasoft
Message:

#1543 (関連商品に同一商品を登録すると、最後のコメントで上書きされて表示される)

File:
1 edited

Legend:

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

    r21309 r21322  
    453453        foreach($arrRecommendData as $recommend){ 
    454454            $arrRecommendProductId[] = $recommend["recommend_product_id"]; 
    455             $arrRecommendData[$recommend["recommend_product_id"]] = $recommend['comment']; 
    456455        } 
    457456 
     
    467466 
    468467        $arrRecommend = array(); 
    469         foreach($arrRecommendProductId as $product_id) { 
    470             $arrProducts2[$product_id]['comment'] = $arrRecommendData[$product_id]; 
    471             $arrRecommend[] = $arrProducts2[$product_id]; 
    472         } 
    473  
    474         return $arrRecommend; 
     468        foreach ($arrRecommendData as $key => $arrRow) { 
     469            $arrRecommendData[$key] = array_merge($arrRow, $arrProducts2[$arrRow['recommend_product_id']]); 
     470        } 
     471 
     472        return $arrRecommendData; 
    475473    } 
    476474 
Note: See TracChangeset for help on using the changeset viewer.