andre 2 سال پیش
والد
کامیت
ea51059853

+ 3 - 11
app/UI/Client/EmailAccount/Providers/EditAccountDataProvider.php

@@ -131,18 +131,10 @@ class EditAccountDataProvider extends BaseDataProvider
         $this->data['status']       = $account['isEnabled'];
         $this->data['company']      = $address['contacts'][0]['companyName'];
         $this->data['title']        = $address['contacts'][0]['titleBefore'];
-        $this->data['phone']        = $address['contacts'][0]['phoneNumberWorkVoice'];
-        $this->data['home_phone']   = '';
+        $this->data['home_phone']   = $address['contacts'][0]['phoneNumberWorkVoice'];
         $this->data['mobile_phone'] = $address['contacts'][0]['phoneNumberMobile'];
-        $this->data['fax']          = '';
-        $this->data['pager']        = '';
-        $this->data['country']      = $address['contacts'][0]['postalAddressWork']['country'];
-        $this->data['city']         = $address['contacts'][0]['postalAddressWork'][''];
-        $this->data['street']       = $address['contacts'][0]['postalAddressWork'][''];
-        $this->data['post_code']    = $address['contacts'][0]['postalAddressWork'][''];
-        $this->data['currentCosId'] = '';
-        $this->data['cosId']        = '';
-        $this->data['state']        = $address['contacts'][0]['postalAddressWork'][''];
+        $this->data['department']   = $address['contacts'][0]['departmentName'];
+        $this->data['profession']   = $address['contacts'][0][''];
 
         logModuleCall(
             'kerioEmail',

+ 1 - 10
app/UI/Client/EmailAccount/Sections/EditAdditionalSection.php

@@ -26,19 +26,10 @@ class EditAdditionalSection extends FreeFieldsSection
     {
         $this->generateDoubleSection([new Text('company'), new Text('title')]);
 
-        $field = new Text('phone');
-        $this->addField($field);
-
         $this->generateDoubleSection([new Text('home_phone'), new Text('mobile_phone')]);
 
-        $this->generateDoubleSection([new Text('fax'), new Text('pager')]);
-
-        $this->generateDoubleSection([new Text('country'), new Text('state')]);
-
-        $this->generateDoubleSection([new Text('city'), new Text('street')]);
+        $this->generateDoubleSection([new Text('department'), new Text('profession')]);
 
-        $field = new Text('post_code');
-        $this->addField($field);
     }
 
 }