xiaogang 3 سال پیش
والد
کامیت
69b061c0f8
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(new UserInfoModel(),$this->getKey());
+        $form = UsersInfoForm::make(UserInfoModel::query()->where('user_id',$this->getKey()),$this->getKey());
         return Modal::make()
             ->lg()
             ->title($this->title)