andre 2 سال پیش
والد
کامیت
1f27564112
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      app/UI/Client/EmailAccount/Providers/EditAccountDataProvider.php

+ 2 - 2
app/UI/Client/EmailAccount/Providers/EditAccountDataProvider.php

@@ -122,8 +122,8 @@ class EditAccountDataProvider extends BaseDataProvider
             $address
         );
 
-        $this->data['id']           = $account['id'];
-        $this->data['username']     = $account['loginName'];
+        $this->data['id']           = $account[0]['id'];
+        $this->data['username']     = $account[0]['loginName'];
         $this->data['domain']       = $this->getWhmcsParamByKey('customfields')['maildomain'];
         $this->data['firstname']    = $address['contacts'][0]['firstName'];
         $this->data['lastname']     = $address['contacts'][0]['surName'];