Fix send email to archived payment

This commit is contained in:
Hillel Coren 2017-08-14 17:06:52 +03:00
parent 2a98a74bb2
commit 274bda8fa7

View File

@ -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 {