Skip to content
Snippets Groups Projects
Commit 503fc58c authored by mmikitka's avatar mmikitka
Browse files

Load the api_type string value in getProviderInfo. Fixed a typo bug in the...

Load the api_type string value in getProviderInfo. Fixed a typo bug in the Clickatell and Twilio files.
parent 734872cd
No related branches found
No related tags found
No related merge requests found
......@@ -127,6 +127,11 @@ class CRM_SMS_BAO_Provider extends CRM_SMS_DAO_Provider {
}
}
$providerInfo[$providerID]['api_params'] = $inputVals;
// Replace the api_type ID with the string value
$apiTypes = CRM_Core_OptionGroup::values('sms_api_type');
$apiTypeId = $providerInfo[$providerID]['api_type'];
$providerInfo[$providerID]['api_type'] = CRM_Utils_Array::value($apiTypeId, $apiTypes, $apiTypeId);
}
}
......
......@@ -223,7 +223,7 @@ class org_civicrm_sms_clickatell extends CRM_SMS_Provider {
* @access public
*/
function send($recipients, $header, $message, $jobID = NULL) {
if ($this->_apiType = 'http') {
if ($this->_apiType == 'http') {
$postDataArray = array( );
$url = $this->formURLPostData("/http/sendmsg", $postDataArray);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment