From e2f09021c65141fe64b66e5314a4f41f5de847bc Mon Sep 17 00:00:00 2001 From: samoilis Date: Wed, 9 Mar 2016 02:00:19 +0200 Subject: [PATCH] Update ContactMailer.php a small fix to payment links of email templates this links is relating to payments and not to invoice view --- app/Ninja/Mailers/ContactMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Ninja/Mailers/ContactMailer.php b/app/Ninja/Mailers/ContactMailer.php index dc513c3e8822..fd51dd5b6a71 100644 --- a/app/Ninja/Mailers/ContactMailer.php +++ b/app/Ninja/Mailers/ContactMailer.php @@ -259,7 +259,7 @@ class ContactMailer extends Mailer foreach (Gateway::$paymentTypes as $type) { $camelType = Gateway::getPaymentTypeName($type); $type = Utils::toSnakeCase($camelType); - $variables["\${$camelType}Link"] = $invitation->getLink() . "/{$type}"; + $variables["\${$camelType}Link"] = $invitation->getLink('payment') . "/{$type}"; $variables["\${$camelType}Button"] = HTML::emailPaymentButton($invitation->getLink('payment') . "/{$type}"); }