xiaogang 3 лет назад
Родитель
Сommit
aff89d313f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Admin/Actions/Users/SetUserInfo.php

+ 1 - 1
app/Admin/Actions/Users/SetUserInfo.php

xqd
@@ -58,7 +58,7 @@ class SetUserInfo extends RowAction
 
     public function render()
     {
-        $form = UsersInfoForm::make(UserInfoModel::query()->where('user_id',$this->getKey()),$this->getKey());
+        $form = UsersInfoForm::make(UserInfoModel::query()->where('user_id',$this->getKey())->first(),$this->getKey());
         return Modal::make()
             ->lg()
             ->title($this->title)