Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMCL-752: Resolve issue with Print / Merge Document bulk action for "CiviCase" and "CiviCRM User" roles #1045

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading