Skip to content

Commit

Permalink
fix: signature types issues in public template while creating through…
Browse files Browse the repository at this point in the history
… drafttemplate
  • Loading branch information
prafull-opensignlabs committed Nov 8, 2024
1 parent b77b57d commit c88de90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/OpenSignServer/cloud/parsefunction/saveTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ async function updateTemplate(template, isJwt = false) {
}
updateTemplate.set('Placeholders', template.Placeholders);
updateTemplate.set('Signers', template.Signers);
if (template?.SignatureType?.length > 0) {
updateTemplate.set('SignatureType', template.SignatureType);
}

let updateTemplateRes;
if (isJwt) {
Expand Down Expand Up @@ -76,6 +79,7 @@ export default async function saveTemplate(request) {
IsEnableOTP: request.params?.IsEnableOTP === true ? true : false,
IsTourEnabled: request.params?.IsTourEnabled === true ? true : false,
IsPublic: request.params?.IsPublic,
SignatureType: request.params?.SignatureType || [],
};

try {
Expand Down

0 comments on commit c88de90

Please sign in to comment.