Răsfoiți Sursa

edit Account

andre 2 ani în urmă
părinte
comite
939f02a2cd

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

@@ -126,9 +126,9 @@ class EditAccountDataProvider extends BaseDataProvider
         $this->data['mobile_phone'] = $address['contacts'][0]['phoneNumberMobile'];
         $this->data['mobile_phone'] = $address['contacts'][0]['phoneNumberMobile'];
         $this->data['department']   = $address['contacts'][0]['departmentName'];
         $this->data['department']   = $address['contacts'][0]['departmentName'];
         $this->data['office']       = $address['contacts'][0]['postalAddressWork']['extendedAddress'];
         $this->data['office']       = $address['contacts'][0]['postalAddressWork']['extendedAddress'];
-        if ($account[0]['diskSizeLimit']['isActive'] === TRUE) {
+        if ($account[0]['diskSizeLimit']['isActive'] == TRUE) {
             $this->data['quota'] = $account[0]['limit']['value'];
             $this->data['quota'] = $account[0]['limit']['value'];
-            $this->data['unit'] = $account[0]['limit']['unit'];
+            $this->data['unit'] = $account[0]['limit']['units'];
         } else {
         } else {
             $this->data['quota'] = 0;
             $this->data['quota'] = 0;
         }
         }