andre 2 лет назад
Родитель
Сommit
3022c798cd
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/UI/Client/EmailAccount/Sections/GeneralSection.php

+ 2 - 2
app/UI/Client/EmailAccount/Sections/GeneralSection.php

@@ -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');