// create activity.
$activityParams = [
+ // activityTypeName - dev/core#1116-unknown-if-ok
'activity_type_id' => CRM_Core_PseudoConstant::getKey('CRM_Activity_DAO_Activity', 'activity_type_id', $activityTypeName),
'subject' => $batch->title . "- Batch",
'status_id' => CRM_Core_PseudoConstant::getKey('CRM_Activity_DAO_Activity', 'activity_status_id', 'Completed'),
</tr>
<tr class="crm-activity-form-block-details">
<td class="label">{$form.details.label}</td>
+ {* activityTypeName means label here not name, but it should be name (dev/core#1116-fixme) *}
{if $activityTypeName eq "Print PDF Letter"}
<td class="view-value">
{$form.details.html}
</td>
+ {* activityTypeName means label here not name, but it should be name (dev/core#1116-fixme) *}
{elseif $activityTypeName eq "Inbound Email"}
<td class="view-value">
{$form.details.html|crmStripAlternatives|nl2br}
<div class="messages status no-popup">
<i class="crm-i fa-info-circle"></i>
{if $action eq 8}
+ {* activityTypeName means label here not name, but it's ok because label is desired here (dev/core#1116-ok-label) *}
{ts 1=$activityTypeName}Click Delete to move this "%1" activity to the Trash.{/ts}
{else}
+ {* activityTypeName means label here not name, but it's ok because label is desired here (dev/core#1116-ok-label) *}
{ts 1=$activityTypeName}Click Restore to retrieve this "%1" activity from the Trash.{/ts}
{/if}
</div><br />
<tr class="crm-case-activity-form-block-activityTypeName">
<td class="label">{ts}Activity Type{/ts}</td>
+ {* activityTypeName means label here not name, but it's ok because label is desired here (dev/core#1116-ok-label) *}
<td class="view-value bold">{$activityTypeName|escape}</td>
</tr>
<tr class="crm-case-activity-form-block-source_contact_id">
$tplParams = [
'isCaseActivity' => 1,
'client_id' => $client_id,
+ // activityTypeName means label here not name, but it's ok because label is desired here (dev/core#1116-ok-label)
'activityTypeName' => 'Follow up',
'activity' => [
'fields' => [
'clientID' => 104,
'creatorID' => 108,
'standardTimeline' => 1,
+ // activityTypeName means name here not label, and that is correct here (dev/core#1116-ok-name)
'activityTypeName' => 'Open Case',
'dueDateTime' => time(),
'caseID' => 1,