Bug #1314: Side-effect from previous commit, VMs were instantiated with wrong name when no name is provided.

(cherry picked from commit ce9c84a35480bc872f76c3580085ebd145e3d3cd)
This commit is contained in:
Hector Sanjuan authored and Ruben S. Montero committed 2012-07-04 11:20:47 +02:00
1 parent 83ff9e0d63
commit ee3ddaced4
1 file changed
+1 -1
+1 -1
View File
@@ -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