From 274bda8fa7cdfbaab2b9208b55b0699bc224a2c4 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 14 Aug 2017 17:06:52 +0300 Subject: [PATCH] Fix send email to archived payment --- app/Http/Controllers/PaymentController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/PaymentController.php b/app/Http/Controllers/PaymentController.php index e0e92015920e..b5e167ecceb1 100644 --- a/app/Http/Controllers/PaymentController.php +++ b/app/Http/Controllers/PaymentController.php @@ -239,7 +239,7 @@ class PaymentController extends BaseController $ids = Input::get('public_id') ? Input::get('public_id') : Input::get('ids'); if ($action === 'email') { - $payment = Payment::scope($ids)->first(); + $payment = Payment::scope($ids)->withArchived()->first(); $this->contactMailer->sendPaymentConfirmation($payment); Session::flash('message', trans('texts.emailed_payment')); } else {