Skip to content

Commit

Permalink
Merge pull request #1045 from compucorp/COMCl-752-fix-template-view
Browse files Browse the repository at this point in the history
COMCL-752: Resolve issue with Print / Merge Document bulk action for "CiviCase" and "CiviCRM User" roles
  • Loading branch information
olayiwola-compucorp authored Sep 12, 2024
2 parents 4bc86de + da1ea5a commit 1902d66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions civicase.php
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,10 @@ function civicase_civicrm_alterContent(&$content, $context, $tplName, &$object)
}
}

if ($context == "form" && $tplName == "CRM/Contact/Form/Task/PDF.tpl") {
$content = str_replace("showSaveDetails(\$('input[name=saveTemplate]', \$form)[0]);", "if (\$('input[name=saveTemplate]').length) { showSaveDetails(\$('input[name=saveTemplate]', \$form)[0]); }", $content);
}

$hooks = [
new CRM_Civicase_Hook_alterContent_AddSalesOrderLineToContribution($content, $context, $tplName),
];
Expand Down

0 comments on commit 1902d66

Please sign in to comment.