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/0b69e890
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/0b69e890
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/0b69e890

Branch: refs/heads/ui-restyle
Commit: 0b69e890e07cb788e8475cdbcf3bb50e54e6e869
Parents: d1dd85a
Author: Jessica Wang <jessicaw...@apache.org>
Authored: Wed Oct 9 14:12:06 2013 -0700
Committer: Jessica Wang <jessicaw...@apache.org>
Committed: Wed Oct 9 14:16:17 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0b69e890/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index f5ed9a2..d197d34 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