|
@@ -92,15 +92,15 @@ class CreateAccount extends AddonController
|
|
|
$productManager->loadById($params['pid']);
|
|
$productManager->loadById($params['pid']);
|
|
|
$acc_limit = $productManager->get('acc_limit');
|
|
$acc_limit = $productManager->get('acc_limit');
|
|
|
$accounts = $productManager->get('acc_base') + $params['configoptions']['acc_add'] + $params['configoptions']['acc_new'];
|
|
$accounts = $productManager->get('acc_base') + $params['configoptions']['acc_add'] + $params['configoptions']['acc_new'];
|
|
|
-/* if ($acc_limit >= 0) {
|
|
|
|
|
|
|
+ if ($acc_limit >= 0) {
|
|
|
$attr['userMaxCountCheckbox'] = TRUE;
|
|
$attr['userMaxCountCheckbox'] = TRUE;
|
|
|
if ($accounts > $acc_limit) {
|
|
if ($accounts > $acc_limit) {
|
|
|
$accounts = $acc_limit;
|
|
$accounts = $acc_limit;
|
|
|
}
|
|
}
|
|
|
- $attr['userMaxCount'] = $acc_limit;
|
|
|
|
|
|
|
+ $attr['userMaxCount'] = $accounts;
|
|
|
} else {
|
|
} else {
|
|
|
$attr['userMaxCountCheckbox'] = FALSE;
|
|
$attr['userMaxCountCheckbox'] = FALSE;
|
|
|
- }*/
|
|
|
|
|
|
|
+ }
|
|
|
$domainMaxSize = $productManager->get('domainMaxSize');
|
|
$domainMaxSize = $productManager->get('domainMaxSize');
|
|
|
$domainSize = $productManager->get('domainBaseSize') + $params['configoptions']['domainAddSize'] + $params['configoptions']['domainNewSize'];
|
|
$domainSize = $productManager->get('domainBaseSize') + $params['configoptions']['domainAddSize'] + $params['configoptions']['domainNewSize'];
|
|
|
if ($domainMaxSize >= 0) {
|
|
if ($domainMaxSize >= 0) {
|