|
|
@@ -43,6 +43,15 @@ class UpdateForm extends BaseForm implements ClientArea
|
|
|
$this->setProvider(new DiskProvider());
|
|
|
$this->initFields();
|
|
|
$this->loadDataToForm();
|
|
|
+
|
|
|
+ logModuleCall(
|
|
|
+ 'proxmoxCloud',
|
|
|
+ __FUNCTION__,
|
|
|
+ $this->getData(),
|
|
|
+ 'Debug',
|
|
|
+ ''
|
|
|
+ );
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public function getAllowedActions()
|
|
|
@@ -60,15 +69,6 @@ class UpdateForm extends BaseForm implements ClientArea
|
|
|
$vm = \ModulesGarden\ProxmoxAddon\Core\Helper\sl('Vm')->getVm();
|
|
|
// $hdd = $vm->findHardDiskById($this->getRequestValue('actionElementId'));
|
|
|
$field = new Text('size');
|
|
|
-
|
|
|
- logModuleCall(
|
|
|
- 'proxmoxCloud',
|
|
|
- __FUNCTION__,
|
|
|
- $field->getData(),
|
|
|
- 'Debug',
|
|
|
- $vm->getHardDisks()
|
|
|
- );
|
|
|
-
|
|
|
// $field = new Range('additionalDiskSize', 20, $this->resourceManager->disk()->free());
|
|
|
$field->addValidator(new DiskSizeValidator('additionalDiskSize',true));
|
|
|
// $field->setDefaultValue(20);
|
|
|
@@ -88,7 +88,7 @@ class UpdateForm extends BaseForm implements ClientArea
|
|
|
logModuleCall(
|
|
|
'proxmoxCloud',
|
|
|
__FUNCTION__,
|
|
|
- $field->getData(),
|
|
|
+ $this->getData(),
|
|
|
'Debug',
|
|
|
$vm->getHardDisks()
|
|
|
);
|