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