|
|
@@ -424,6 +424,9 @@ function zimbraSingle_CreateAccount($params) {
|
|
|
);
|
|
|
return 'Error: could save username & password in database';
|
|
|
}
|
|
|
+ if(zimbraSingleUpdateQuota($params) != 'success') {
|
|
|
+ return 'Error: could not update addonQuota in database';
|
|
|
+ };
|
|
|
return 'success';
|
|
|
}
|
|
|
|
|
|
@@ -638,6 +641,9 @@ function zimbraSingle_ChangePackage($params) {
|
|
|
);
|
|
|
return 'Error: could not update quota in database';
|
|
|
}
|
|
|
+ if(zimbraSingleUpdateQuota($params) != 'success') {
|
|
|
+ return 'Error: could not update addonQuota in database';
|
|
|
+ };
|
|
|
return 'success';
|
|
|
}
|
|
|
|
|
|
@@ -791,7 +797,7 @@ function zimbraSingle_ServiceSingleSignOn($params) {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
-function zimbraSingle_AdminServicesTabFieldsSave($params) {
|
|
|
+function zimbraSingleUpdateQuota($params) {
|
|
|
if(isset($params['configoptions']['addonQuota'])) {
|
|
|
$addonQuota = $params['configoptions']['addonQuota'] ? $params['configoptions']['addonQuota'] : 0 ;
|
|
|
$newAddQuota = $params['configoptions']['newAddQuota'] ? $params['configoptions']['newAddQuota'] : 0;
|