ryan 3 недель назад
Родитель
Сommit
6bea608436
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      common/services/GuestDeclarationOrderService.php

+ 1 - 1
common/services/GuestDeclarationOrderService.php

@@ -150,7 +150,7 @@ class GuestDeclarationOrderService
         }
         $bottomPlace = UserNetwork::getBottomPlace($referrerId, '', 'left');
         $bottom = UserNetwork::find()->select('USER_ID')->where(['LOCATION_TAG' => $bottomPlace])->asArray()->one();
-        $bottomUser = $bottom ? User::findOneAsArray(['ID' => $bottom['USER_ID']], 'USER_NAME') : null;
+        $bottomUser = $bottom ? User::findOneAsArray(['ID' => $bottom['USER_ID']], [], 'USER_NAME') : null;
         if (!$bottomUser) {
             throw new BadRequestHttpException(Yii::t('app', 'stockistDoesNotExist'));
         }