BUG 9414 PMFSendVariables doesn't work

- The function don't use the context execution values
- Merge the case variables with the execution context values if exists
This commit is contained in:
Julio Cesar Laura
2012-07-23 20:50:41 -04:00
parent 21c4ad9676
commit b4390b0c1a
2 changed files with 22 additions and 13 deletions

View File

@@ -810,6 +810,15 @@ 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())
{
global $oPMScript;
if (isset($oPMScript->aFields) && is_array($oPMScript->aFields)) {
if (is_array($aFields)) {
$aFields = array_merge($oPMScript->aFields, $aFields);
} else {
$aFields = $oPMScript->aFields;
}
}
G::LoadClass('wsBase');
$ws = new wsBase ();