Parcourir la source

bugfix disklimit unit

andre il y a 4 ans
Parent
commit
c05fc9d9f7
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      zimbraSingle.php

+ 2 - 2
zimbraSingle.php

@@ -418,7 +418,7 @@ function zimbraSingle_CreateAccount($params) {
                 array(
                     'username' => $params['username'],
                     'password' => $params['customfields']['password'],
-                    'disklimit' => $baseQuota + $addonQuota + $newAddQuota,
+                    'disklimit' => ($baseQuota + $addonQuota + $newAddQuota) * 1024,
                 )
             );
     } catch (\Exception $e) {
@@ -637,7 +637,7 @@ function zimbraSingle_ChangePackage($params) {
             ->where('id', '=', $params['serviceid'])
             ->update(
                 array(
-                    'disklimit' => $baseQuota + $addonQuota + $newAddQuota,
+                    'disklimit' => ($baseQuota + $addonQuota + $newAddQuota) * 1024,
                 )
             );
     } catch (\Exception $e) {