Libor Spevak has uploaded a new change for review. Change subject: frontend: VM template change shouldn't change selected cluster ......................................................................
frontend: VM template change shouldn't change selected cluster Changing VM template using combobox should not change selected cluster inside new virtual machine dialog when multiple clusters and templates are available inside one DS. Initially, the VM template has a binding to a DS and a cluster, but the VM template should be available across clusters of the same DS now. Change-Id: I23bf4aaa9f16d23996b2a28ef778748c1e622e38 Bug-Url: https://bugzilla.redhat.com/877981 Signed-off-by: Libor Spevak <lspe...@redhat.com> --- M frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/NewVmModelBehavior.java 1 file changed, 0 insertions(+), 7 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/12/9512/1 diff --git a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/NewVmModelBehavior.java b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/NewVmModelBehavior.java index 0b726e5..f3daaec 100644 --- a/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/NewVmModelBehavior.java +++ b/frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/NewVmModelBehavior.java @@ -124,13 +124,6 @@ // Update domain list UpdateDomain(); - ArrayList<VDSGroup> clusters = (ArrayList<VDSGroup>) getModel().getCluster().getItems(); - VDSGroup selectCluster = - Linq.FirstOrDefault(clusters, new Linq.ClusterPredicate(template.getvds_group_id())); - - getModel().getCluster().setSelectedItem((selectCluster != null) ? selectCluster - : Linq.FirstOrDefault(clusters)); - // Update display protocol selected item EntityModel displayProtocol = null; boolean isFirst = true; -- To view, visit http://gerrit.ovirt.org/9512 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I23bf4aaa9f16d23996b2a28ef778748c1e622e38 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Libor Spevak <lspe...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches