BUG 9937 PMFSendMessage way to not log in history... SOLVED

- The registration messages are displayed by default.
- was add in PMFSendMessage a feature in the last parameter.
This commit is contained in:
Marco Antonio Nina
2012-10-29 11:45:05 -04:00
parent b5288d2266
commit 530565f543
9 changed files with 89 additions and 18 deletions

View File

@@ -796,7 +796,7 @@ function getEmailConfiguration ()
*
*/
//@param array | $aFields=array() | An associative array optional | Optional parameter. An associative array where the keys are the variable name and the values are the variable's value.
function PMFSendMessage ($caseId, $sFrom, $sTo, $sCc, $sBcc, $sSubject, $sTemplate, $aFields = array(), $aAttachment = array())
function PMFSendMessage ($caseId, $sFrom, $sTo, $sCc, $sBcc, $sSubject, $sTemplate, $aFields = array(), $aAttachment = array(), $showMessage = true)
{
global $oPMScript;
@@ -810,7 +810,7 @@ function PMFSendMessage ($caseId, $sFrom, $sTo, $sCc, $sBcc, $sSubject, $sTempla
G::LoadClass( 'wsBase' );
$ws = new wsBase();
$result = $ws->sendMessage( $caseId, $sFrom, $sTo, $sCc, $sBcc, $sSubject, $sTemplate, $aFields, $aAttachment );
$result = $ws->sendMessage( $caseId, $sFrom, $sTo, $sCc, $sBcc, $sSubject, $sTemplate, $aFields, $aAttachment, $showMessage);
if ($result->status_code == 0) {
return 1;