From d5fd283deeec5b1cbfca79eca4869b03c487a2e6 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Thu, 5 Nov 2015 16:38:16 +0100 Subject: [PATCH] feature #4038: Do not use xmlRoot if not defined (cherry picked from commit 4ace9f5e92750deae235b6c02961c8ece3cf2a38) --- src/sunstone/public/app/utils/common-actions.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/app/utils/common-actions.js b/src/sunstone/public/app/utils/common-actions.js index f3d66b4de9..31d04b1cf1 100644 --- a/src/sunstone/public/app/utils/common-actions.js +++ b/src/sunstone/public/app/utils/common-actions.js @@ -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