Details
Description
Allow templates/CRM/Case/Form/ActivityToCase.tpl to tolerate an unassigned buildCaseActivityForm variable. The converse fix, making sure that the variables always get assigned, would require patching at least six other source code files.
diff --git templates/CRM/Case/Form/ActivityToCase.tpl templates/CRM/Case/Form/ActivityToCase.tpl
index ef6fd7a..277b578 100644
— templates/CRM/Case/Form/ActivityToCase.tpl
+++ templates/CRM/Case/Form/ActivityToCase.tpl
@@ -26,7 +26,7 @@
{* CiviCase - build activity to a case*}
<div id="fileOnCaseDialog"></div>
-
{if $buildCaseActivityForm}+
{if !empty($buildCaseActivityForm)} <div class="crm-block crm-form-block crm-case-activitytocase-form-block">
<table class="form-layout">
<tr class="crm-case-activitytocase-form-block-unclosed_cases">
@@ -149,7 +149,7 @@ function fileOnCase( action, activityID, currentCaseId ) {
} else {
var destUrl =
var context = '';
- {/literal} {if $fulltext} {literal}
+ {/literal}{if !empty($fulltext)}{literal}
context = '&context=
{/literal}{$fulltext}{literal}';{/literal} {/if} {literal}
var caseUrl = destUrl + selectedCaseId + '&cid=' + contactId + context;