Updated Branches:
  refs/heads/4.2 30a680efc -> b8ed87246

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.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b8ed8724
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b8ed8724
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b8ed8724

Branch: refs/heads/4.2
Commit: b8ed87246f71c52481bd4fb8d3539f3de183dd20
Parents: 30a680e
Author: Jessica Wang <[email protected]>
Authored: Wed Oct 9 14:12:06 2013 -0700
Committer: Jessica Wang <[email protected]>
Committed: Wed Oct 9 14:15:33 2013 -0700

----------------------------------------------------------------------
 ui/scripts/system.js | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b8ed8724/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 77c387c..05f2a63 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -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]
                                                     });
                                                 }
                                             });

Reply via email to