BUG 10037 Error in ws_sendMessage & ws_sendEmailMessage in wsClient.php SOLVED

- Incorrect parameters sent in the functions ws_sendEmailMessage and ws_sendMessage
- Now we use and send the correct parameters
This commit is contained in:
Julio Cesar Laura
2012-11-12 15:02:55 -04:00
parent 9c6a4f1839
commit 47556c8de8

View File

@@ -142,7 +142,7 @@ function ws_open_with_params($endpoint, $user, $pass) {
throw (new Exception($result->message));
}
function ws_sendEmailMessage($caseId, $toEmail, $sSubject, $ccEmail, $bccEmail, $sBody) {
function ws_sendEmailMessage($caseId, $toEmail, $sSubject, $ccEmail, $bccEmail, $template) {
global $sessionId;
global $client;
$params = array (
@@ -153,7 +153,7 @@ function ws_sendEmailMessage($caseId, $toEmail, $sSubject, $ccEmail, $bccEmail,
'cc' => $ccEmail,
'bcc' => $bccEmail,
'subject' => $sSubject,
'message' => $sBody
'template' => $template
);
$result = $client->__SoapCall('sendMessage', array (
$params
@@ -172,7 +172,7 @@ function ws_sendMessage($caseId, $toEmail, $sSubject, $ccEmail, $bccEmail, $temp
'cc' => $ccEmail,
'bcc' => $bccEmail,
'subject' => $sSubject,
'message' => $template
'template' => $template
);
$result = $client->__SoapCall('sendMessage', array (
$params