mirror of https://github.com/apache/cloudstack.git
bug 12859: cloudstack 3.0 new UI - systemVM page - migrate action - fix a bug that passed an empty virtualMachineId to API.
This commit is contained in:
parent
a4cabad669
commit
205ffdb792
|
|
@ -1679,11 +1679,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
action: function(args) {
|
||||
if(args.data.hostId == null) {
|
||||
args.response.error("Host field is required");
|
||||
return;
|
||||
}
|
||||
action: function(args) {
|
||||
$.ajax({
|
||||
url: createURL("migrateSystemVm&hostid=" + args.data.hostId + "&virtualmachineid=" + args.context.routers[0].id),
|
||||
dataType: "json",
|
||||
|
|
@ -3586,13 +3582,9 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
action: function(args) {
|
||||
if(args.data.hostId == null) {
|
||||
args.response.error("Host field is required");
|
||||
return;
|
||||
}
|
||||
action: function(args) {
|
||||
$.ajax({
|
||||
url: createURL("migrateSystemVm&hostid=" + args.data.hostId + "&virtualmachineid=" + args.data.id),
|
||||
url: createURL("migrateSystemVm&hostid=" + args.data.hostId + "&virtualmachineid=" + args.context.systemVMs[0].id),
|
||||
dataType: "json",
|
||||
async: true,
|
||||
success: function(json) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue