CLOUDSTACK-3154: UI > Infrastructure > zone detail > remove VMware datacenter action > fix a bug that incorrect property name was used to retrieve embedded object in API response.

This commit is contained in:
Jessica Wang 2013-10-09 14:12:06 -07:00
parent 30a680efc5
commit b8ed87246f
1 changed files with 8 additions and 4 deletions

View File

@ -5709,10 +5709,14 @@
url: createURL('removeVmwareDc'),
data: data,
success: function(json) {
var item = json.updatezoneresponse.zone;
args.response.success({
actionFilter: zoneActionfilter,
data: item
delete args.context.physicalResources[0].vmwaredcName;
delete args.context.physicalResources[0].vmwaredcVcenter;
delete args.context.physicalResources[0].vmwaredcId;
selectedZoneObj = args.context.physicalResources[0];
args.response.success({
data: args.context.physicalResources[0]
});
}
});