mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-555:Uncaught TypeError: Cannot read property 0 of undefined in UI while navigating to ipAddresses section under VPC
This commit is contained in:
parent
1d0a1adb8e
commit
fb9c62ff1c
@ -1263,11 +1263,21 @@
|
||||
addRow: 'true',
|
||||
preFilter: function(args) {
|
||||
var zoneObj;
|
||||
var dataObj = {};
|
||||
if('vpc' in args.context) { //from VPC section
|
||||
$.extend(dataObj, {
|
||||
vpcid: args.context.vpc[0].id
|
||||
});
|
||||
}
|
||||
else if('networks' in args.context) { //from Guest Network section
|
||||
$.extend(dataObj, {
|
||||
networkid: args.context.networks[0].id
|
||||
});
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: createURL('listZones'),
|
||||
data: {
|
||||
id: args.context.networks[0].zoneid
|
||||
},
|
||||
data: dataObj,
|
||||
async: false,
|
||||
success: function(json) {
|
||||
zoneObj = json.listzonesresponse.zone[0];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user