From 21b91db43cd67d83c48f715d6470e26c5bd5dc7c Mon Sep 17 00:00:00 2001 From: Ronald Q Date: Tue, 8 Jan 2019 15:34:10 -0400 Subject: [PATCH] PMC-348 Add marks and register the new classes for avoid this implementation in the community version --- workflow/engine/bin/cron_single.php | 4 ++++ .../BusinessModel/ActionsByEmail/ResponseReader.php | 2 ++ .../engine/src/ProcessMaker/Services/Api/ActionsByEmail.php | 2 ++ workflow/engine/templates/emailServer/emailServer.js | 4 ++++ 4 files changed, 12 insertions(+) diff --git a/workflow/engine/bin/cron_single.php b/workflow/engine/bin/cron_single.php index 5098a3339..64cacd92b 100644 --- a/workflow/engine/bin/cron_single.php +++ b/workflow/engine/bin/cron_single.php @@ -1,7 +1,9 @@ actionsByEmailEmailResponse(); break; + /*----------------------------------********---------------------------------*/ } } catch (Exception $e) { $token = strtotime("now"); diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/ActionsByEmail/ResponseReader.php b/workflow/engine/src/ProcessMaker/BusinessModel/ActionsByEmail/ResponseReader.php index 447835910..b7117228d 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/ActionsByEmail/ResponseReader.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/ActionsByEmail/ResponseReader.php @@ -30,6 +30,7 @@ use WsBase; */ class ResponseReader { + /*----------------------------------********---------------------------------*/ private $channel = "ActionsByEmail"; private $case = []; private $messageResponseError = null; @@ -347,4 +348,5 @@ class ResponseReader ); return $result; } + /*----------------------------------********---------------------------------*/ } diff --git a/workflow/engine/src/ProcessMaker/Services/Api/ActionsByEmail.php b/workflow/engine/src/ProcessMaker/Services/Api/ActionsByEmail.php index a1646e6ee..63045f2ec 100644 --- a/workflow/engine/src/ProcessMaker/Services/Api/ActionsByEmail.php +++ b/workflow/engine/src/ProcessMaker/Services/Api/ActionsByEmail.php @@ -154,11 +154,13 @@ class ActionsByEmail extends Api $arrayData = $filesManager->addProcessFilesManager($proId, $userUid, $data); @copy(PATH_TPL . 'actionsByEmail' . PATH_SEP . 'actionsByEmail.html', $path . 'actionsByEmail.html'); } + /*----------------------------------********---------------------------------*/ if (!file_exists($path . 'actionsByEmailErrorReply.html')) { $data = array('prf_content' => '', 'prf_filename' => 'actionsByEmailErrorReply.html', 'prf_path' => 'templates'); $arrayData = $filesManager->addProcessFilesManager($proId, $userUid, $data); @copy(PATH_TPL . 'actionsByEmail' . PATH_SEP . 'actionsByEmailErrorReply.html', $path . 'actionsByEmailErrorReply.html'); } + /*----------------------------------********---------------------------------*/ } $directory = dir($path); diff --git a/workflow/engine/templates/emailServer/emailServer.js b/workflow/engine/templates/emailServer/emailServer.js index d7976acb9..7341082b6 100644 --- a/workflow/engine/templates/emailServer/emailServer.js +++ b/workflow/engine/templates/emailServer/emailServer.js @@ -71,6 +71,7 @@ emailServer.application = { emailServerDefault: emailDefault }; } else if (typeEmailEngine === "IMAP") { + /*----------------------------------********---------------------------------*/ var rdoGrpOption = Ext.getCmp("rdoGrpSmtpSecure").getValue(); var smtpSecure = rdoGrpOption.getGroupValue(); @@ -92,6 +93,7 @@ emailServer.application = { mailTo: Ext.getCmp("txtMailTo").getValue(), emailServerDefault: emailDefault }; + /*----------------------------------********---------------------------------*/ } else { //MAIL p = { @@ -304,6 +306,7 @@ emailServer.application = { Ext.getCmp("txtIncomingPort").allowBlank = true; Ext.getCmp("txtAccountFrom").allowBlank = false; } else if (cboEmailEngine === "IMAP") { + /*----------------------------------********---------------------------------*/ Ext.getCmp("txtServer").setVisible(true); Ext.getCmp("txtPort").setVisible(true); @@ -330,6 +333,7 @@ emailServer.application = { Ext.getCmp("txtIncomingServer").allowBlank = false; Ext.getCmp("txtIncomingPort").allowBlank = false; Ext.getCmp("txtAccountFrom").allowBlank = false; + /*----------------------------------********---------------------------------*/ } else { //MAIL Ext.getCmp("txtServer").setVisible(false);