Skip to content

Commit

Permalink
Toward 3sd#7: Bug-fix: bad arguments caused fatal error for subsequen…
Browse files Browse the repository at this point in the history
…t questions.
  • Loading branch information
twomice committed Aug 10, 2017
1 parent cf89b27 commit 699e1cb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CRM/SmsConversation/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ function inbound() {

if (!$isValidAnswer) {
// Send the invalid message
CRM_SmsConversation_Processor::sendSMS($this->sourceContactId, $convQuestion['text_invalid'], $convContact['source_contact_id']);
$params = array(
'contact_id' => $this->sourceContactId,
'source_contact_id' => CRM_Utils_Array::value('source_contact_id', $convContact),
'text' => CRM_Utils_Array::value('text_invalid', $convQuestion),
'sms_provider_id' => CRM_Utils_Array::value('sms_provider_id', $convContact),
);
CRM_SmsConversation_Processor::sendSMS($params);
}
else {
// Got valid actions, process them
Expand Down

0 comments on commit 699e1cb

Please sign in to comment.