'main' => NULL,
'other' => NULL,
'location_entity' => NULL,
+ 'location_block_index' => NULL,
];
}
$this->assign('rows', $assignedRows);
// Add this value to the table rows
$rows["move_location_{$blockName}_{$count}"]['other'] = $displayValue;
$rows["move_location_{$blockName}_{$count}"]['location_entity'] = $blockName;
+ $rows["move_location_{$blockName}_{$count}"]['location_block_index'] = $count;
// CRM-17556 Only display 'main' contact value if it's the same location + type
// Look it up from main values...
{$row.title|escape}
</td>
{/if}
-
- {assign var=position value=$field|strrpos:'_'}
- {assign var=blockId value=$field|substr:$position+1}
- {assign var=blockName value=$field|substr:14:$position-14}
+ {assign var=blockId value=$row.location_block_index}
+ {assign var=blockName value=$row.location_entity}
<td>
{* @TODO check if this is ever an array or a fileName? *}