ソースを参照

Merge branch 'dev'

master
コミット
19e3b50712
1個のファイルの変更6行の追加19行の削除
  1. +6
    -19
      producer/controllers/OrderController.php

+ 6
- 19
producer/controllers/OrderController.php ファイルの表示

@@ -570,29 +570,16 @@ class OrderController extends ProducerBaseController
$favoritePointSale = User::getCurrent()->getFavoritePointSale() ;
/*if($favoritePointSale) {
$newPointSaleArray = [] ;
foreach($pointsSaleArray as $pointSale) {
if($pointSale['id'] != $favoritePointSale->id) {
$newPointSaleArray[] = $pointSale ;
}
else {
$theFavoritePointSale = $pointSale ;
if($favoritePointSale) {
foreach($pointsSaleArray as $key => $pointSale) {
if($pointSale['id'] == $favoritePointSale->id) {
unset($pointsSaleArray[$key]) ;
array_unshift($pointsSaleArray, $pointSale) ;
}
}
if(isset($theFavoritePointSale)) {
array_unshift($newPointSaleArray, $theFavoritePointSale) ;
}
}
else {
$newPointSaleArray = $pointsSaleArray ;
}*/
$newPointSaleArray = $pointsSaleArray ;
$json['points_sale'] = $newPointSaleArray;
$json['points_sale'] = $pointsSaleArray ;
// Commandes totales
$ordersArray = Order::searchAll([

読み込み中…
キャンセル
保存