Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15671

sendSMS() field names don't match - message doesn't send

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.4
    • Fix Version/s: 4.5.5
    • Component/s: CiviSMS
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      In CRM/Activity/BAO/Activity.php the sendSMS() function has the wrong field name for the body of the SMS.

      Currently it is:
      Code: [Select]
      $text = &$activityParams['text_message'];
      $html = &$activityParams['html_message'];

      It needs to be:
      Code: [Select]
      $text = &$activityParams['sms_text_message'];
      $html = &$activityParams['html_message'];

      Otherwise the message is empty and fails to send.

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              baspray Barnabas Aspray
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: