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;