1
0
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:
Daniel Molina 2015-11-05 16:38:16 +01:00
parent b88b210d3d
commit 4ace9f5e92

View File

@ -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