feature #4038: Do not use xmlRoot if not defined

(cherry picked from commit 4ace9f5e92)
This commit is contained in:
Daniel Molina authored and Carlos Martín committed 2015-11-06 11:49:09 +01:00
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