From b10d2cc986802d099a5ac2af3687f1a58c06f8fc Mon Sep 17 00:00:00 2001 From: Frederick Borges Date: Tue, 23 Feb 2021 13:40:31 +0100 Subject: [PATCH] B #5254: Fix Service Update (#862) Signed-off-by: Frederick Borges --- .../app/tabs/oneflow-templates-tab/form-panels/create.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sunstone/public/app/tabs/oneflow-templates-tab/form-panels/create.js b/src/sunstone/public/app/tabs/oneflow-templates-tab/form-panels/create.js index 9413ac4cd7..4ac37a9dcb 100644 --- a/src/sunstone/public/app/tabs/oneflow-templates-tab/form-panels/create.js +++ b/src/sunstone/public/app/tabs/oneflow-templates-tab/form-panels/create.js @@ -445,14 +445,14 @@ define(function(require) { json_template["labels"] = currentInfo.TEMPLATE.BODY.labels; } - var new_template = {}; - $.extend(true, new_template, that.old_template, json_template); + json_template['registration_time'] = that.old_template.registration_time; + clear(); if (this.action == "create") { - Sunstone.runAction("ServiceTemplate.create", new_template ); + Sunstone.runAction("ServiceTemplate.create", json_template ); return false; } else if (this.action == "update") { - var templateStr = JSON.stringify(new_template); + var templateStr = JSON.stringify(json_template); Sunstone.runAction("ServiceTemplate.update", this.resourceId, templateStr); return false; }