mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
feature #4038: Do not use xmlRoot if not defined
(cherry picked from commit 4ace9f5e92)
This commit is contained in:
1 parent
a9ace3362d
commit
d5fd283dee
1 file changed
+5
-1
@@ -173,7 +173,11 @@ define(function(require) {
|
||||
callback: function(request, response) {
|
||||
Sunstone.showFormPanel(that.tabId, formPanelId, "update",
|
||||
function(formPanelInstance, context) {
|
||||
formPanelInstance.fill(context, response[that.xmlRoot]);
|
||||
if (that.xmlRoot) {
|
||||
formPanelInstance.fill(context, response[that.xmlRoot]);
|
||||
} else {
|
||||
formPanelInstance.fill(context, response);
|
||||
}
|
||||
});
|
||||
},
|
||||
error: Notifier.onError
|
||||
|
||||
Reference in new issue
Block a user