Martin Betak has uploaded a new change for review.

Change subject: webadmin: Add missing properties to 
VmSnapshotListModel.onCloneVM()
......................................................................

webadmin: Add missing properties to VmSnapshotListModel.onCloneVM()

Added properties which weren't mapped from UnitVmModel to VM entity:
- allowConsoleReconnect
- customProperties
- runAndPause
- singleQxlPci

Change-Id: I068aa873f9ff433f45770a717ecc90198ced7a44
Signed-off-by: Martin Betak <mbe...@redhat.com>
---
M 
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/16/23616/1

diff --git 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
index fad7055..b016a95 100644
--- 
a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
+++ 
b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/VmSnapshotListModel.java
@@ -617,6 +617,8 @@
         getcurrentVm().setName(name);
         getcurrentVm().setVmOs(model.getOSType().getSelectedItem());
         
getcurrentVm().setNumOfMonitors(model.getNumOfMonitors().getSelectedItem());
+        
getcurrentVm().setSingleQxlPci(model.getIsSingleQxlEnabled().getEntity());
+        
getcurrentVm().setAllowConsoleReconnect(model.getAllowConsoleReconnect().getEntity());
         getcurrentVm().setVmDescription(model.getDescription().getEntity());
         getcurrentVm().setComment(model.getComment().getEntity());
         getcurrentVm().setVmMemSizeMb(model.getMemSize().getEntity());
@@ -631,6 +633,7 @@
                 model.getNumOfSockets().getSelectedItem());
         getcurrentVm().setUsbPolicy(model.getUsbPolicy().getSelectedItem());
         getcurrentVm().setStateless(model.getIsStateless().getEntity());
+        getcurrentVm().setRunAndPause(model.getIsRunAndPause().getEntity());
         
getcurrentVm().setSmartcardEnabled(model.getIsSmartcardEnabled().getEntity());
         
getcurrentVm().setDeleteProtected(model.getIsDeleteProtected().getEntity());
         getcurrentVm().setSsoMethod(model.extractSelectedSsoMethod());
@@ -641,7 +644,7 @@
         getcurrentVm().setInitrdUrl(model.getInitrd_path().getEntity());
         getcurrentVm().setKernelUrl(model.getKernel_path().getEntity());
         
getcurrentVm().setKernelParams(model.getKernel_parameters().getEntity());
-        
getcurrentVm().setCustomProperties(model.getCustomProperties().getEntity());
+        
getcurrentVm().setCustomProperties(model.getCustomPropertySheet().serialize());
         if (model.getQuota().getIsAvailable() && 
model.getQuota().getSelectedItem() != null) {
             
getcurrentVm().setQuotaId(model.getQuota().getSelectedItem().getId());
         }


-- 
To view, visit http://gerrit.ovirt.org/23616
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I068aa873f9ff433f45770a717ecc90198ced7a44
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Martin Betak <mbe...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to