From 15ed6b772b6e37fef9ded02a9d94f40551dd2db7 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Tue, 3 Jul 2012 19:16:44 +0200 Subject: [PATCH] Bug #1314: Side-effect from previous commit, VMs were instantiated with wrong name when no name is provided. (cherry picked from commit ce9c84a35480bc872f76c3580085ebd145e3d3cd) --- src/sunstone/public/js/plugins/vms-tab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/js/plugins/vms-tab.js b/src/sunstone/public/js/plugins/vms-tab.js index b187dd7da1..234becbd72 100644 --- a/src/sunstone/public/js/plugins/vms-tab.js +++ b/src/sunstone/public/js/plugins/vms-tab.js @@ -1334,7 +1334,7 @@ function setupCreateVMDialog(){ }; if (!vm_name.length){ - vm_name = $('#template_id option:selected',this).text(); + vm_name = getTemplateName(template_id); }; if (vm_name.indexOf("%i") == -1){ //no wildcard