|
|
@@ -4,7 +4,7 @@ use ThurData\Servers\KerioEmail\App\Libs\Product\ProductManager;
|
|
|
use ThurData\Servers\KerioEmail\App\Libs\Kerio\Components\Api\Soap\Repository\ClassOfServices;
|
|
|
use ThurData\Servers\KerioEmail\App\Traits\FormExtendedTrait;
|
|
|
use ThurData\Servers\KerioEmail\App\UI\Admin\Custom\Sections\FreeFieldsSection;
|
|
|
-use ThurData\Servers\KerioEmail\App\Validators\IntegerValueValidator;
|
|
|
+use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Validators\Decimal;
|
|
|
use ThurData\Servers\KerioEmail\App\Validators\PasswordsValidator;
|
|
|
use ThurData\Servers\KerioEmail\App\Validators\RepeatPasswordValidator;
|
|
|
use ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields\Hidden;
|
|
|
@@ -55,7 +55,7 @@ class GeneralSection extends FreeFieldsSection
|
|
|
$this->generateDoubleSection([new Text('display_name'), new Select('status')]);
|
|
|
$quota = new Text('quota');
|
|
|
$quota->setDescription('description');
|
|
|
- $quota->addValidator(new IntegerValueValidator(TRUE));
|
|
|
+ $quota->addValidator(new Decimal(0));
|
|
|
$this->generateDoubleSection([$quota, new Select('unit')]);
|
|
|
|
|
|
$passwd = new Password('password');
|