Skip to content

Commit

Permalink
Fix PDF conribution link in mails
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Jul 14, 2020
1 parent c532dcb commit 4e3bd96
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -685,7 +685,7 @@ public function store(Request $request, Response $response, array $args = []): R
} }


$link_pdf = ''; $link_pdf = '';
if (strpos($mtxt->tbody, '{LINK_MEMBERCARD}') !== false) { if (strpos($mtxt->tbody, '{LINK_CONTRIBPDF}') !== false) {
//contribution receipt link is present in mail model, let's add it //contribution receipt link is present in mail model, let's add it
$links = new Links($this->zdb); $links = new Links($this->zdb);
$ltype = $contrib->type->isExtension() ? Links::TARGET_INVOICE : Links::TARGET_RECEIPT; $ltype = $contrib->type->isExtension() ? Links::TARGET_INVOICE : Links::TARGET_RECEIPT;
Expand Down

0 comments on commit 4e3bd96

Please sign in to comment.