Parcourir la source

Merge branch 'dev'

master
Guillaume Bourgeois il y a 5 ans
Parent
révision
19e3b50712
1 fichiers modifiés avec 6 ajouts et 19 suppressions
  1. +6
    -19
      producer/controllers/OrderController.php

+ 6
- 19
producer/controllers/OrderController.php Voir le fichier

@@ -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([

Chargement…
Annuler
Enregistrer