From 360db902ff4194a64703860e7aa0a940299f00d4 Mon Sep 17 00:00:00 2001 From: Frederick Borges Date: Wed, 24 Feb 2021 13:33:40 +0100 Subject: [PATCH] B #5254: Fix Service Update (#870) Signed-off-by: Frederick Borges --- .../app/tabs/oneflow-templates-tab/form-panels/create.js | 3 +-- 1 file changed, 1 insertion(+), 2 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 4ac37a9dcb..678cf83c27 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,13 +445,12 @@ define(function(require) { json_template["labels"] = currentInfo.TEMPLATE.BODY.labels; } - json_template['registration_time'] = that.old_template.registration_time; - clear(); if (this.action == "create") { Sunstone.runAction("ServiceTemplate.create", json_template ); return false; } else if (this.action == "update") { + json_template['registration_time'] = that.old_template.registration_time; var templateStr = JSON.stringify(json_template); Sunstone.runAction("ServiceTemplate.update", this.resourceId, templateStr); return false;