mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-17 21:25:54 +02:00
Merge pull request #739 from OpenSignLabs/staging
disable signing request email when send_email flag is false
This commit is contained in:
@@ -1684,8 +1684,12 @@ function WidgetsValueModal(props) {
|
||||
validateExpression(regexValidation);
|
||||
break;
|
||||
default:
|
||||
regexValidation =
|
||||
currWidgetsDetails?.options?.validation?.pattern || "";
|
||||
// Grab the current pattern (if it exists)
|
||||
const pattern = currWidgetsDetails?.options?.validation?.pattern;
|
||||
// Removed `backwordSupportPattern` (/^[a-zA-Z0-9s]+$/) — it blocked spaces and special characters.
|
||||
const backwordSupportPattern =
|
||||
pattern && pattern === "/^[a-zA-Z0-9s]+$/" ? "" : pattern; // If it matches exactly '/^[a-zA-Z0-9s]+$/', clear it
|
||||
regexValidation = backwordSupportPattern || "";
|
||||
validateExpression(regexValidation);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -865,7 +865,10 @@ function PdfRequestFiles(
|
||||
const user = usermail?.Email
|
||||
? usermail
|
||||
: pdfDetails?.[0]?.Signers[newIndex];
|
||||
if (sendmail !== "false" && sendInOrder) {
|
||||
if (
|
||||
sendmail !== "false" &&
|
||||
sendInOrder
|
||||
) {
|
||||
const requestBody =
|
||||
updatedDoc.updatedPdfDetails?.[0]?.RequestBody;
|
||||
const requestSubject =
|
||||
|
||||
Reference in New Issue
Block a user