mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-13 13:17:39 +03:00
feature #4038: Do not use xmlRoot if not defined
This commit is contained in:
parent
b88b210d3d
commit
4ace9f5e92
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user