Correct the php and template files so the checkboxes are indexed correctly.
----------------------------------------
* CRM-18459: Case activity emails not sent to any added Case Resources
https://issues.civicrm.org/jira/browse/CRM-18459
if (!empty($this->_relatedContacts)) {
$checkBoxes = array();
foreach ($this->_relatedContacts as $id => $row) {
- $checkBoxes[$id] = $this->addElement('checkbox', $id, NULL, NULL, array('class' => 'select-row'));
+ foreach ($row as $key => $value) {
+ $checkBoxes[$key] = $this->addElement('checkbox', $key, NULL, NULL, array('class' => 'select-row'));
+ }
}
$this->addGroup($checkBoxes, 'contact_check');
{foreach from=$searchRows item=row key=id}
{foreach from=$searchRows.$id item=row1 key=id1}
<tr class="{cycle values="odd-row,even-row"}">
- <td class="crm-case-activity-form-block-contact_{$id}">{$form.contact_check[$id].html}</td>
+ <td class="crm-case-activity-form-block-contact_{$id1}">{$form.contact_check[$id1].html}</td>
<td class="crm-case-activity-form-block-role">{$row1.role}</td>
<td class="crm-case-activity-form-block-display_name">{$row1.display_name}</td>
<td class="crm-case-activity-form-block-email">{$row1.email}</td>