xiaogang před 3 roky
rodič
revize
69b061c0f8
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)