diff --git a/workflow/engine/classes/class.pmFunctions.php b/workflow/engine/classes/class.pmFunctions.php index 49ee94616..040ddb450 100644 --- a/workflow/engine/classes/class.pmFunctions.php +++ b/workflow/engine/classes/class.pmFunctions.php @@ -3016,13 +3016,13 @@ function PMFUnpauseCase ($caseUid, $delIndex, $userUid) * @param string(32) | $taskUid | ID of the task | The unique ID of the task. * @param string(32) | $userUid | ID user | The unique ID of the user who will add note case. * @param string | $note | Note of the case | Note of the case. - * @param int | $sendMail = 1 | Send mail | Optional parameter. If set to 1, will send an email to all participants in the case. + * @param int | $sendMail = 0 | Send mail | Optional parameter. If set to 1, will send an email to all participants in the case. * @param array | $files | Array of files | An array of files (full paths) to be attached to the case notes. * * @return int | $result | Result of the add a case note | Returns 1 if the note has been added to the case.; otherwise, returns 0 if an error occurred. * */ -function PMFAddCaseNote($caseUid, $processUid, $taskUid, $userUid, $note, $sendMail = 1, $files = []) +function PMFAddCaseNote($caseUid, $processUid, $taskUid, $userUid, $note, $sendMail = 0, $files = []) { $ws = new WsBase(); $result = $ws->addCaseNote($caseUid, $processUid, $taskUid, $userUid, $note, $sendMail, $files); diff --git a/workflow/engine/templates/app/main.js b/workflow/engine/templates/app/main.js index 8d9e79aaf..c1b64b886 100644 --- a/workflow/engine/templates/app/main.js +++ b/workflow/engine/templates/app/main.js @@ -302,7 +302,7 @@ function openCaseNotesWindow(appUid1, delIndex, modalSw, appTitle, proUid, taskU xtype: "checkbox", id: "chkSendMail", name: "chkSendMail", - checked: true, + checked: false, boxLabel: _("ID_CASE_NOTES_LABEL_SEND") }, '->',