소스 검색

[Backend] Distribution > user : correctif point sale favorite

feature/souke
Guillaume Bourgeois 1 년 전
부모
커밋
401d49256b
1개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. +7
    -3
      backend/controllers/DistributionController.php

+ 7
- 3
backend/controllers/DistributionController.php 파일 보기

@@ -457,11 +457,15 @@ class DistributionController extends BackendController
{
\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
$userManager = $this->getUserManager();
$user = $userManager->findOneUserById($idUser);
$favoritePointSale = $userManager->getUserFavoritePointSale($user);
$idFavoritePointSale = 0;
if ($favoritePointSale) {
$idFavoritePointSale = $favoritePointSale->id;

if($user) {
$favoritePointSale = $userManager->getUserFavoritePointSale($user);
if ($favoritePointSale) {
$idFavoritePointSale = $favoritePointSale->id;
}
}

return [

Loading…
취소
저장