]> git.agnieray.net Git - galette.git/commitdiff
Fix PDF conribution link in mails
authorJohan Cwiklinski <johan@x-tnd.be>
Tue, 14 Jul 2020 07:02:44 +0000 (09:02 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Tue, 14 Jul 2020 07:02:44 +0000 (09:02 +0200)
galette/lib/Galette/Controllers/Crud/ContributionsController.php

index 943f582288ab2b4488a7e9983b8ea93c2133e27d..89efb565ccb713bb29b3f3a0583c689c048eb28a 100644 (file)
@@ -685,7 +685,7 @@ class ContributionsController extends CrudController
                         }
 
                         $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
                             $links = new Links($this->zdb);
                             $ltype = $contrib->type->isExtension() ? Links::TARGET_INVOICE : Links::TARGET_RECEIPT;